随笔分类 -  python

摘要:![image](https://img2022.cnblogs.com/blog/2168477/202204/2168477-20220424021611742-1232646872.png) 阅读全文
posted @ 2022-04-24 02:16 mk-备忘 阅读(23) 评论(0) 推荐(0) 编辑
摘要:# 安装python和python开发工具 yum install python3 python3-devel # 安装django python3 -m pip install django # 安装uwsgi 模块 python3 -m pip install uwsgi # 创建一个Djang 阅读全文
posted @ 2022-03-22 15:18 mk-备忘 阅读(17) 评论(0) 推荐(0) 编辑
摘要:from PyQt5.Qt import * class Window(QWidget): def __init__(self,*args,**kwargs): super().__init__(*args,**kwargs) self.setWindowTitle('') self.resize( 阅读全文
posted @ 2022-02-26 12:25 mk-备忘 阅读(57) 评论(0) 推荐(0) 编辑
摘要:对象版 文件结构 notify 里定义的是各种通知的方法 main 程序执行的入口 settings 配置文件 email.py class Email(object): def __init__(self): pass def send(self,content): print('email消息: 阅读全文
posted @ 2022-01-15 14:46 mk-备忘 阅读(31) 评论(0) 推荐(0) 编辑
摘要:class Myclass(object): # def __new__(self): # pass # 在实例化是会触发,它比 __init__早( __new__ 造出裸替的人,__init__ 穿衣服) def __init__(self): # print("__init__方法执行") s 阅读全文
posted @ 2022-01-14 00:08 mk-备忘 阅读(30) 评论(0) 推荐(0) 编辑
摘要:打包exe文件需要使用windows环境 安装 pip install pyinstaller python打包 mac 需要使用sudo执行 # 打包为文件夹的形式 sudo pyinstaller hello.py #打包为单个文件的形式 sudo pyinstaller -F hello.py 阅读全文
posted @ 2021-12-17 01:46 mk-备忘 阅读(42) 评论(0) 推荐(0) 编辑
摘要:#####1.str 字符串 a="aa" b="1" c= """ sss """ <class 'str'> 不可变类型 #####2.int 数字 b=1 <class 'int'> 不可变类型 #####3.float 浮点数 a=1.233 <class 'float'> 不可变类型 ## 阅读全文
posted @ 2021-10-12 22:20 mk-备忘 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示