打印"hello word"并将它保存到txt文档中,代码如下:
txt = open("文本名字.txt","w",encoding="utf-8")
print("hello word",file=txt)
txt.close()
打印"hello word"并将它保存到txt文档中,代码如下:
txt = open("文本名字.txt","w",encoding="utf-8")
print("hello word",file=txt)
txt.close()