outFile = open('sample.txt', 'w') outFile.write('My first output file!') outFile.close(). The first line creates a file object, which links Python to your ...
確定! 回上一頁