We can use writelines() to write multiple lines or a list to a file. data = ["test 1 \n", "test 2 \n", "test 3 \n"] with open('file-new.txt' ...
確定! 回上一頁