问题遇到的现象和发生背景
在自学python文件这一章节对代码进行练习
问题相关代码,请勿粘贴截图
with open('C:/Users/张念安/Desktop/test.txt',encoding='UTF-8') as f:
read = f.read()
print(f)
运行结果及报错内容
<_io.TextIOWrapper name='C:/Users/张念安/Desktop/test.txt' mode='r' encoding='UTF-8'>
我想要达到的结果
输出文本文件中的内容