With Python 3.4, you can also use the pathlib module. The Path.write_text() function opens the file in text mode, write data to it, and close the file.
確定! 回上一頁