📜  python 将字符串保存到文本 - Python 代码示例

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

代码示例1
with open("Output.txt", "w") as text_file:
    text_file.write("Purchase Amount: %s" % TotalAmount)