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