Here's a very basic example of opening and reading a file that is the current directory: f = open('myfile.txt') contents = f.read() print(contents).
確定! 回上一頁