(编码题)编写 Python 代码,有以下一个字符串,利用 print() 打印函数,将其保存在名为 output.txt 的文件中。
text = ‘我爱Python’
参考代码如下:
text = '我爱Python'
with open('output.txt', 'w') as f:
print(text,<
(编码题)编写 Python 代码,有以下一个字符串,利用 print() 打印函数,将其保存在名为 output.txt 的文件中。
text = ‘我爱Python’
参考代码如下:
text = '我爱Python'
with open('output.txt', 'w') as f:
print(text,<