📜  python 倒计时从 20 到 0 - Python 代码示例

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

代码示例1
x = 20

while True:
    print(x)
    x -= 1
    if x == 0:
      break
    
for x in range(20, 1):
    print(x)