append a line to a text file python ; 1. # Open a file with access mode 'a' ; 2. file_object = open('sample.txt', 'a') ; 3 ; 4. # Append 'hello' at the end of file.
確定! 回上一頁