这是我的代码:
import time as t print('hello', end=' ') t.sleep(1) print('hello', end=' ') t.sleep(1) print('hello', end=' ') t.sleep(1)
我的问题是所有打印命令都在sleep命令之后执行,而这不是我的预期输出。
python printing
printing ×1
python ×1