2020-05-24 【Python】Windowsでファイルを作成する Python import pathlib new_file = pathlib.Path(r'C:\Users\Administrator\Desktop\new_file2.txt') new_file.touch()