![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
python记录
Z_X_Lei
这个作者很懒,什么都没留下…
展开
-
python操作excel(使用openpyxl)
1,效果2,源码不废话直接上源码import openpyxldef insert_row(row_num, id, projectName, projectId, deviceId, deviceName, time, filepath, content): excel_file_name = "data.xlsx" excel_dir = "E:\\test\\" excel_file_path = os.path.join(excel_dir, excel_file_n原创 2022-03-27 23:38:33 · 529 阅读 · 0 评论 -
python 行人检测框拼接(PIL paste)
效果图源码from PIL import Imagedef paste_files(file_dir): #遍历图片 im_list = [Image.open(file_dir + '/' + fn) for fn in listdir(file_dir) if fn.endswith('.jpg')] new_image_width = 0 new_image_height = 0 for image in im_list: width, height = ima原创 2022-04-15 14:32:46 · 632 阅读 · 0 评论