filename
=
'python.txt'
with
open
(filename,
'w'
) as file_object:
file_object.write(
"python写入文件"
)