随笔分类 -  python

摘要:安装 pip install PyQt5 PyQt Designer在pyqt5-tools 里面 pip install pyqt5-tools 界面ui设计 打开py目录\Lib\site-packages\qt5_applications\Qt\bin\designer.exe进行ui拖拽设计 阅读全文
posted @ 2021-01-15 17:07 cl94 阅读(523) 评论(0) 推荐(0)
摘要:orm模型 _models.py from peewee import * from datetime import date db = MySQLDatabase("spider",host="127.0.0.1",port=3306,user="root",password="root") cl 阅读全文
posted @ 2020-02-29 17:05 cl94 阅读(274) 评论(0) 推荐(0)
摘要:第一种方法,使用 pymysql库 import pymysql.cursors # Connect to the database connection = pymysql.connect(host='localhost', user='root', password='root', db='sp 阅读全文
posted @ 2020-02-22 23:23 cl94 阅读(173) 评论(0) 推荐(0)
摘要:# for用法 for i in range(0,100,2): print(i) n = 0 # while用法 while n < 100: print(n) n += 2 else: print("循环结束") # 实现99乘法口诀for实现 for n in range(1,10): for 阅读全文
posted @ 2020-02-06 23:04 cl94 阅读(156) 评论(0) 推荐(0)