Open file in append mode and write to it
The content of the file my_file.txt is
with open("my_file.txt", "a") as f:
f.write("new text")
The content of the file my_file.txt is
with open("my_file.txt", "a") as f:
f.write("new text")
Using decode() print(b'Easy \xE2\x9C\x85'.decode("utf-8"))
0 Comments