标签:
python 未入门,练练手,锻炼一下智力。只适合跟我一样的菜鸟 #coding = utf-8 import time import sys count = 0 m = 0 mm = 0 h = 0 hh =0 while True: for i in range(0,11): if i < 10: time.sleep(1) sys.stdout.write("\r%s%s:%s%s:%s%s" %(hh,h,mm,m,count,i)) sys.stdout.flush() else : if i == 10: # s count +=1 if count == 6: m +=1 if m ==10: mm +=1 if mm == 6: h +=1 if h == 10: #s hh +=1 h = 0 else : if hh ==2 and h == 4: print "The second day has come!! welcome to you !! " count = 0 m = 0 mm = 0 h = 0 hh = 0 break mm = 0 m = 0 count = 0 continue标签:
原文地址:http://www.cnblogs.com/lcmemo/p/4277862.html