Python学习
一杯南风
电子信息工程专业学生,主要向嵌入式、图像识别方向发展
展开
-
关于python3出现 "AttributeError: 'str' object has no attribute 'decode'"错误的原因及其解决办法
/tmp/ python3Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> f1 = open("unicode.txt",原创 2018-08-20 16:59:09 · 98509 阅读 · 0 评论 -
Ubuntu18.04下完美切换Python版本
转载自https://blog.csdn.net/beijiu5854/article/details/77897767ubuntu18.04版本,python版本python2.7,python3.5,python3.6因为安装一些库会安装到python3.6上,而默认使用的是python2.7,使用python3,默认会使用python3.5,无法调用安装包。解决方法:一,使用...转载 2018-09-28 19:55:12 · 8295 阅读 · 0 评论