摘要:
习题3.6 点击查看代码 import time for i in range(101): print("\rStarting...",end="") time.sleep(0.1) print("Done!") 习题3.7 点击查看代码 while True: for i in ["/","-", 阅读全文
摘要:
习题3.1 点击查看代码 earth=50.000 for i in range(10): earth+=0.5 moon=earth*0.165 print("在地球的体重为:{:.3f}kg,在月球上的体重为:{:.3f}kg.".format(earth,moon)) 习题3.2 点击查看代码 阅读全文