def process(string):
print 'Processing: ',string
f=open(r'D:\\ruanjian\\Python\\程序\\1.txt')
while True:
line=f.readline()
if not line:break
process(line)
f.close()
Processing: this isn't a haiku
def process(string):
print 'Processing: ',string
f=open(r'D:\\ruanjian\\Python\\程序\\1.txt')
while True:
line=f.readline()
if not line:break
process(line)
f.close()
Processing: this isn't a haiku