python代码为:
with open ('test.txt') as test:
print(test)
test的内容为
1:test1
2:test2
3:test3
为什么结果显示为
<_io.TextIOWrapper name='test.txt' mode='r' encoding='cp936'>
python代码为:
with open ('test.txt') as test:
print(test)
test的内容为
1:test1
2:test2
3:test3
为什么结果显示为
<_io.TextIOWrapper name='test.txt' mode='r' encoding='cp936'>
4 回答4.4k 阅读✓ 已解决
4 回答3.8k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
1 回答4.5k 阅读✓ 已解决
1 回答3.8k 阅读✓ 已解决
1 回答2.8k 阅读✓ 已解决