📜  python flush print函数的优缺点——Python代码示例

📅  最后修改于: 2022-03-11 14:47:07.236000             🧑  作者: Mango

代码示例1
from time import sleep

# output is flushed here
print("Hello, world!", end='', flush= True)
sleep(5)
print("Bye!!!")