FILE=r'C:\Users\le_chateau\Desktop\test.txt'
f=open(FILE,'r')
out=f.read()
f.close()
text =out.decode('ascii')
print text
>>>
If you were a teardrop;In my eye,
For fear of losing you,I would never cry.
And if the golden sun,Should cease to shine its light,
Just one smile from you,Would make my whole world bright.
__________________________________________
关于解码格式的问题 还在看 因为想写一个可以读dll的程序
努力ING