- 论坛徽章:
- 0
|
我打开读一个txt文件都有错。。。
只有英文的txt文件
大家看看,错在哪里呀?
>>> filename = "C:\\TestBuild\\Dependce.txt"
>>> fp = open(filename,'r')
>>> for line in fp:
fp
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
<open file 'C:\TestBuild\Dependce.txt', mode 'r' at 0x00AF6920>
>>> |
|