📜  将输出 python 打印到文件 - Python 代码示例

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

代码示例3
print("Hello stackoverflow!", file=open("output.txt", "a"))
print("I have a question.", file=open("output.txt", "a"))