码迷,mamicode.com
首页 > 编程语言 > 详细

python_bug

时间:2016-12-05 17:10:14      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:except   open   nbsp   for   cti   not   bsp   his   cep   

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

标签:except   open   nbsp   for   cti   not   bsp   his   cep   

原文地址:http://www.cnblogs.com/sushome/p/6134438.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!