摘要: def downloadFile(url, filepath): """ 下载文件并保存 :param url: :param filepath: :return: """ # 获取文件后缀 # file_extension = os.path.splitext(url)[1] # 判断文件是否存在 阅读全文
posted @ 2021-03-23 17:14 SirPi 阅读(50) 评论(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 阅读(189) 评论(0) 推荐(0) 编辑