发布时间:2019-09-11 07:43:11编辑:auto阅读(2094)
参考了https://blog.csdn.net/shandong_chu/article/details/70173952
import sys
方法一:
#read txt method one  
f = open("./image/abc.txt")  
line = f.readline()  
while line:  
print line  
line = f.readline()  
f.close()  
方法二:
#read txt method two  
f = open("./image/abc.txt")  
for line2 in open("./image/abc.txt"):  
print line2  
方法三:
#read txt method three  
f2 = open("./image/abc.txt","r")  
lines = f2.readlines()  
for line3 in lines:  
print line3  
上一篇: python学习笔记-利器篇1:IPyt
下一篇: elasticsearch API使用方
 51197
 50616
 41238
 38053
 32516
 29423
 28283
 23141
 23098
 21436
 1493°
 2206°
 1830°
 1759°
 2067°
 1817°
 2501°
 4200°
 4062°
 2899°