摘要:
1、类的声明 语法: class MainWindow: """class information """ pass # class body 2、特殊方法 2.1 init 构造函数,类会调用该方法构造对象。 语法: class Test: def __init__(self, args...): 阅读全文
摘要:
1、模块 模块就是.py文件,一个python文件就是一个模块,可以使用import关键字将一个模块导入到另一个模块中使用。 python模块搜索路径: 当前目录 PATHONPATH环境变量 标准链接库目录,是Python按照标准模块的目录,是在安装Python时自动创建的目录 可以通过sys.p 阅读全文