Created
February 24, 2020 20:24
-
-
Save rovesoul/df305a20a976da5bf0dbb8d75884ef83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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