Как читать текстовый файл в Python
with open('the-zen-of-python.txt') as f:
contents = f.read()
print(contents)
Code language: JavaScript (javascript)
Hurt Horse
with open('the-zen-of-python.txt') as f:
contents = f.read()
print(contents)
Code language: JavaScript (javascript)