摘要:
1、读取文件 with open("F:\\1.txt", encoding=const.Utf8) as file: content = file.read() file.readline() lines = file.readlines() print(content) 等价于 f = open 阅读全文
摘要:
1、图标网:easyicon 2、pyinstaller相关参数 -F, –onefile 打包一个单个文件,如果你的代码都写在一个.py文件的话,可以用这个,如果是多个.py文件就别用 -D, –onedir 打包多个文件,在dist中生成很多依赖文件,适合以框架形式编写工具代码,我个人比较推荐这 阅读全文
摘要:
1、函数测试 import unittest from name_function import get_formatted_name class NamesTestCase(unittest.TestCase): """测试name_function.py""" def test_first_la 阅读全文