摘要: import openpyxl ''' 空行插入程序 ''' def insert_none(n, m, filename): wb = openpyxl.load_workbook(filename) sheet = wb.active wb_new = openpyxl.Workbook() sheet_new = wb_new.active # 复制... 阅读全文
posted @ 2019-01-30 17:00 鹄望 阅读(366) 评论(0) 推荐(0) 编辑
摘要: import openpyxl # 新建excel文档 excel = openpyxl.Workbook() # 获取当前sheet sheet = excel.active print('请输入正整数:') # 检查输入字符是否为正整数 while True: try: n = int(input()) except: print('输入错误... 阅读全文
posted @ 2019-01-30 15:56 鹄望 阅读(385) 评论(0) 推荐(0) 编辑