What is a file object? - A file object is a remote control for a file: you don’t become the file, you control how to read from it or write to it. You get a file object using open(). f = open("file1.txt" , "r") "file1.txt" → file name "r" → mode (r...

Markdown supported · ⌘↵ to post
No responses yet.