Skip to content

Instantly share code, notes, and snippets.

@rovesoul
Created February 24, 2020 20:24
Show Gist options
  • Save rovesoul/df305a20a976da5bf0dbb8d75884ef83 to your computer and use it in GitHub Desktop.
Save rovesoul/df305a20a976da5bf0dbb8d75884ef83 to your computer and use it in GitHub Desktop.
def daojishi():
minute=input('your minute?')
print(f'总练习时间{minute}分钟')
minute=minute-1
while minute >= 0:
for i in reversed(range(0, 60)):
print("\r倒计时:{}分:{}秒".format(minute, i), end="")
time.sleep(1)
minute = minute - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment