Created
May 21, 2023 00:30
-
-
Save rongpenl/6a3cc23c7466090e1ea11ffd92934a9a to your computer and use it in GitHub Desktop.
Don't say this is a context manager to a beginner, just don't say it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('example.txt', 'r') as file: | |
# do something |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment