我想在我的代码中执行几行后停止 for 循环
cursor.execute("select score*100 from daily_stats1 where user_id=102")
rows = cursor.fetchall()
# Convert query to objects of key-value pairs
lastweek1 = list()
i = 0
for row in rows:
lastweek1.append(row[i])
if i == 4:
break
侃侃尔雅
喵喵时光机
波斯汪
相关分类