in[15] # 进度条 import time for i in range(50): sys.stdout.write('#') sys.stdout.flush() time.sleep(0.5) 似乎缺少了import sys