python3-学习
文章平均质量分 63
STFOPY
水瓶座
展开
-
python3-类
1、概述类是用来描述具有相同的属性和方法的对象的集合。它定义了该集合中每个对象所共有的属性和方法。对象是类的实例。程序举例:class test(): def __init__(self,one,two,three): self.one=one self.two=two self.three=three def add(self):原创 2017-07-23 10:04:19 · 227 阅读 · 0 评论 -
python3 数据类型归纳
1、简介 1.1、python3 数据类型: 类型 含义 示例 int 整型 1 float 浮点型 1.0 bool 布尔值 True或False complex 复数 a+bj string 字符串 ‘abc123’ list 列表 [a,b,c] tuple ...原创 2017-07-20 22:21:04 · 3061 阅读 · 0 评论 -
Pyinstaller打包python3+pyqt5程序
安装Pyinstaller 1、直接使用pip install pyinstaller 2、在GitHub上下载pyinstaller资源包,解压后在目录下打开cmd,输入: python setup.py install 使用Pyinstaller 1、在主程序py文件所在目录下打开cmd窗口。 直接输入 pyinstaller -w ****.py ...原创 2018-02-20 22:19:46 · 971 阅读 · 1 评论