def process(string):
print 'Processing: ',string
f=open(r'D:\ruanjian\Python\程序\1.txt')
while True:
char=f.read(1)
if not char:break
process(char)
f.close()def process(string):
print 'Processing: ',sdef process(string):
print 'Processing: ',string
f=open(r'D:\ruanjian\Python\程序\1.txt')
while True:
char=f.read(1)
if not char:break
process(char)
f.close()def process(string):
print 'Processing: ',s