07 2022 档案

摘要:错误信息: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /pack 阅读全文
posted @ 2022-07-29 16:13 布都御魂 阅读(525) 评论(0) 推荐(0)
摘要:错误信息:无法将“D:\PyCharm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。 解决方法:更换阿里云镜像源,添加 --trusted-host mirrors.aliyun.com python -m pip inst 阅读全文
posted @ 2022-07-29 15:59 布都御魂 阅读(100) 评论(0) 推荐(0)
摘要:from math import ceildef split_word(lst, size): word_list = list( map(lambda x: lst[x * size:x * size + size], list(range(0, ceil(len(lst) / size))))) 阅读全文
posted @ 2022-07-28 16:55 布都御魂 阅读(22) 评论(0) 推荐(0)
摘要:import warningswarnings.filterwarnings("ignore") 阅读全文
posted @ 2022-07-22 15:23 布都御魂 阅读(366) 评论(0) 推荐(0)
摘要:'''一:需求:读取压缩包,根据客户要求,查看是否有用户要求的文件,如果没有,则放弃这个压缩包,如果有则解压这个压缩包,打开特定文件,对其中的某些字段进行翻译并重写,然后重新压缩二:需求分析:1.编写配置文件,方便用户配置需要翻译的文件及字段2.编写翻译程序,输入一个压缩包,输出一个翻译后的压缩包三 阅读全文
posted @ 2022-07-22 10:36 布都御魂 阅读(99) 评论(0) 推荐(0)
摘要:def Single_to_double_quote(path): fileObject = open(path, 'r', encoding='utf-8').read() dels = fileObject.replace('\'', '\"') open(path, 'w', encoding 阅读全文
posted @ 2022-07-20 11:00 布都御魂 阅读(344) 评论(0) 推荐(0)