摘要:
while True: id = input('请输入ID(如1001):') if not id: break开始不明白 if not id是什么用法,我输入什么都一直循环,后面发现一个帖子,说 在python中None,False,空字符串,空列表,空字典,空元组都相当于False,X是他们,n 阅读全文
摘要:
db=pymysql.connect("ip地址","用户名","密码","数据库")cursor=db.cursor()cursor.execute("select * from zj_class limit 5")data=cursor.fetchall()for i in range(5): 阅读全文