Commit a5396bc9 by BellCodeEditor

save project

parent 20fb059a
Showing with 5 additions and 4 deletions
...@@ -31,10 +31,11 @@ while True: ...@@ -31,10 +31,11 @@ while True:
time=pygame.mixer.music.get_pos()/1000 time=pygame.mixer.music.get_pos()/1000
time_m=int(time//60) time_m=int(time//60)
time_s=int(time%60) time_s=int(time%60)
if time_s>=10: if time_s<10:
tms=str(time_m)+':'+str(time_s) time_s='0'+str(time_s)
else: if time_m<10:
tms=str(time_m)+':0'+str(time_s) time_m='0'+str(time_m)
tms=str(time_m)+':'+str(time_s)
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment