Alternatively, you can use the print() function instead of write() function. with open('data.txt', 'a') as f: print ...
確定! 回上一頁