有人可以为我制作并解释每 60 秒运行一次的调度程序吗?
sql = "SELECT * FROM economy"
cursor.execute(sql)
brojredova = cursor.rowcount
for i in range(1, brojredova):
sql2 = "UPDATE economy SET LoanTime= LoanTime - 1 WHERE ID = '%d' AND Loan > 0" % (i)
cursor.execute(sql2)
谢谢!:)