How do I force Python's print function to output to the screen?
(如何强制将Python的打印功能输出到屏幕?)
This is not a duplicate of Disable output buffering - the linked question is attempting unbuffered output, while this is more general.
(这不是“ 禁用输出缓冲”的重复项-链接的问题正在尝试无缓冲输出,尽管这更普遍。)
The top answers in that question are too powerful or involved for this one (they're not good answers for this), and this question can be found on Google by a relative newbie. (对于这个问题,最重要的答案太过强大或牵扯太多(对于这个问题,它们不是很好的答案),这个问题可以由相对新手在Google上找到。)
ask by Walter Nissen translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…