filename
=
'python.txt'
# python 追加写入文件 写日志
with
open
(filename,
'a'
) as file_object:
file_object.write(
"python 追加写入文件 写日志\n"
)