多行动态刷新 import time #导入时间库 print('执行开始'.center(20,'-')) #打印信息,控制占位宽度,填充字符 scale=10 #设置进度条长度 for i in range(scale+1): a=i/scale*100 #a变量表示当前进度百分比 b=