So lesen Sie die Textdatei in Python

with open('the-zen-of-python.txt') as f:
    contents = f.read()
    print(contents)
Code language: JavaScript (javascript)
Hurt Horse