print — flush
pythonpythonpython—printprintprint—flushflushflush代码def slowprint(text,times = 0.1): import time for i in text: print(i,flush = True,end = "") time.sleep(times)作用flush = True是什么?flush在print里默认是False(非实时打印)小明:那flush = True是实时打印咯?没错。小结今天我们知道了
复制链接