📜  如何在 python 代码示例中进行刻度更新

📅  最后修改于: 2022-03-11 14:45:25.619000             🧑  作者: Mango

代码示例1
lasttick = -0.01
tick = float(0.00)
while True:
  tick = tick + float(0.01)
  if tick > lasttick:
    #Your tick update here:
    print(tick) #Prints the tick
  lasttick = lasttick + 0.01