wei/unit-10/write_message.py

4 lines
140 B
Python

filename = 'programming.txt'
with open(filename, 'a')as file_object:
file_object.write("hello world\n")
file_object.write("hello\n")