Python 办公
高冷男孩不吃苹果
这个作者很懒,什么都没留下…
展开
-
Python办公——根据Excel数据批量生成二维码
代码:# author : 高冷男孩不吃苹果#根据Excel数据批量生成二维码from excel_magic.dataset import open_file,ImageCellimport qrcodewith 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 · 1606 阅读 · 4 评论 -
Python办公——合并excel
一、任务需求使用Python将多个单独的excel合并为一个excel二、代码import osfrom excel_magic.dataset import open_filefile_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 · 389 阅读 · 0 评论 -
Python办公——三行代码拆分表格
一、任务需求一个excel文件中往往会出现多个表格(sheet),将这些sheet拆分成一个一个的excel文件虽然操作简单,但是简单的事被大量重复做的话也就成了难题,不仅浪费时间,也真是让人头疼。本文使用Python仅使用三行代码即可解决这个问题,实现批量拆分表格。二、代码from excel_magic.dataset import Datasetexcel_file = Dataset('工资条.xlsx')excel_file.split_sheets_to_file()三原创 2021-09-04 19:08:50 · 561 阅读 · 0 评论