进度条制作的原理: import time for i in range(50): sys.stdout.write(’#’)time.sleep(0.1)sys.stdout.flush() 间隔0.1秒打印#,共50个,每打印一次屏幕会显示一个。