进度条的小程序 import sys, time for i in range(50): sys.stdout.write("...") sys.stdout.flush time.sleep(0.3)