03 2021 档案

摘要:目的:将数据追加进excel def writeExcel(list, save_path,excel_header,excel_sheet_name): """ write to excel 需要导入的库: from openpyxl import Workbook from openpyxl i 阅读全文
posted @ 2021-03-24 17:54 SirPi 阅读(733) 评论(0) 推荐(0)
摘要:def downloadFile(url, filepath): """ 下载文件并保存 :param url: :param filepath: :return: """ # 获取文件后缀 # file_extension = os.path.splitext(url)[1] # 判断文件是否存在 阅读全文
posted @ 2021-03-23 17:14 SirPi 阅读(76) 评论(0) 推荐(0)
摘要:word ==> pdf def doc2pdf(file_path): """ word格式转换doc|docx ==> pdf :return: """ file_name, file_extension = os.path.splitext(file_path) # 获取文件名、文件扩展名 f 阅读全文
posted @ 2021-03-23 17:13 SirPi 阅读(246) 评论(0) 推荐(0)
摘要:需求:通过url数组下载图片,再竖直合成一张新的图片,具体java代码如下 1 /** 2 * 竖直合并图片 3 * 4 * @param urls 5 * @return 6 */ 7 public static byte[] mergePic(String urls[]) { 8 //Buffe 阅读全文
posted @ 2021-03-16 13:10 SirPi 阅读(525) 评论(0) 推荐(0)