代码 import time print("---runoob example Loading---") print("Loading",end="") for i in range(20): print(".",end='',Flush=True) #sep(".") 以.分隔,若为print(".",end='',Flush=True,sep=".") #.的数量会加倍 time.sleep(0.5) 效果