with open(‘test.txt‘,‘r‘,encoding=‘utf8‘) as f:
Exception:‘encoding‘ is an invalid keyword argument for this function
Reason:‘encoding‘ is not suitable to run on the python 2.X
python_bug
原文:http://www.cnblogs.com/sushome/p/6134438.html