Python - 064 : Open a file in append mode in python

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Append Only ('a’): This mode allows the file to be opened for writing. If the file doesn't yet exist, a new one gets created. The handle is set at the end of the file. The newly written data will be added at the end, following the previously written data.
    Append and Read (‘a+’): Using this method, you can read and write in the file. If the file doesn't already exist, one gets created. The handle is set at the end of the file. The newly written text will be added at the end, following the previously written data.

ความคิดเห็น •