【发布时间】:2010-01-23 18:40:57
【问题描述】:
我有一个文件,看起来像这样alt text http://img40.imageshack.us/img40/4581/crapq.png 现在显示了 5 行。但是运行这个脚本
with open('hello.txt', 'r') as hello:
for line in hello:
print line,
给予
num 1
ctl00$header1$Login1$txtUserName=ыют;CBШ▌
仅此而已。如何读取整个文件? TIA
【问题讨论】:
标签: python