随笔分类 - python
摘要:安装 pip install PyQt5 PyQt Designer在pyqt5-tools 里面 pip install pyqt5-tools 界面ui设计 打开py目录\Lib\site-packages\qt5_applications\Qt\bin\designer.exe进行ui拖拽设计
阅读全文
摘要: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
阅读全文
摘要:第一种方法,使用 pymysql库 import pymysql.cursors # Connect to the database connection = pymysql.connect(host='localhost', user='root', password='root', db='sp
阅读全文
摘要:# 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
阅读全文

浙公网安备 33010602011771号