随笔分类 - python
摘要:
阅读全文
摘要:# 安装python和python开发工具 yum install python3 python3-devel # 安装django python3 -m pip install django # 安装uwsgi 模块 python3 -m pip install uwsgi # 创建一个Djang
阅读全文
摘要:from PyQt5.Qt import * class Window(QWidget): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.setWindowTitle('') self.resize(
阅读全文
摘要:对象版 文件结构 notify 里定义的是各种通知的方法 main 程序执行的入口 settings 配置文件 email.py class Email(object): def __init__(self): pass def send(self,content): print('email消息:
阅读全文
摘要:class Myclass(object): # def __new__(self): # pass # 在实例化是会触发,它比 __init__早( __new__ 造出裸替的人,__init__ 穿衣服) def __init__(self): # print("__init__方法执行") s
阅读全文
摘要:打包exe文件需要使用windows环境 安装 pip install pyinstaller python打包 mac 需要使用sudo执行 # 打包为文件夹的形式 sudo pyinstaller hello.py #打包为单个文件的形式 sudo pyinstaller -F hello.py
阅读全文
摘要:#####1.str 字符串 a="aa" b="1" c= """ sss """ <class 'str'> 不可变类型 #####2.int 数字 b=1 <class 'int'> 不可变类型 #####3.float 浮点数 a=1.233 <class 'float'> 不可变类型 ##
阅读全文