Python 办公
高冷男孩不吃苹果
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python办公——根据Excel数据批量生成二维码
代码: # author : 高冷男孩不吃苹果 #根据Excel数据批量生成二维码 from excel_magic.dataset import open_file,ImageCell import qrcode with open_file(path='data1.xlsx') as excel_file: #打开excel sheet = excel_file.get_sheet_by_index(0) for row in sheet.get_rows():原创 2021-09-05 22:02:42 · 1800 阅读 · 4 评论 -
Python办公——合并excel
一、任务需求 使用Python将多个单独的excel合并为一个excel 二、代码 import os from excel_magic.dataset import open_file file_list = os.listdir() #待合并的表格的存储目录 excel_file = open_file('工资条总表.xlsx') #创建合并后的总表 #合并过程 for f in file_list: if '.xlsx' in f: excel_file.merge原创 2021-09-04 19:17:53 · 442 阅读 · 0 评论 -
Python办公——三行代码拆分表格
一、任务需求 一个excel文件中往往会出现多个表格(sheet),将这些sheet拆分成一个一个的excel文件虽然操作简单,但是简单的事被大量重复做的话也就成了难题,不仅浪费时间,也真是让人头疼。 本文使用Python仅使用三行代码即可解决这个问题,实现批量拆分表格。 二、代码 from excel_magic.dataset import Dataset excel_file = Dataset('工资条.xlsx') excel_file.split_sheets_to_file() 三原创 2021-09-04 19:08:50 · 637 阅读 · 0 评论
分享