
Python
记录学习python过程中的问题及经验
rivercoder
技术改变生活
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PyCharm安装第三方库超时的解决办法
学习python3的过程中,会使用到第三方库,一般安装有2种方法: 1.使用pip命令安装 $ pip install pillow 使用该命令时修改超时时间: $ pip install --default-timeout=1000 pillow 2、通过PyCharm 的Settings File->Setting->Project Interpreter, 点击+,输入网址: https://pypi.douban.com/simple https://pypi..原创 2020-05-10 17:32:58 · 7701 阅读 · 0 评论 -
Python读取文件内容时报错:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte...
Python代码如下: #!/usr/bin/python3 print("读取的文件内容:") with open("myfile.txt", mode='r') as f: for line in f: print(line, end="") 运行代码,异常信息如下: Traceback (most recent call last): File "E...原创 2020-05-05 20:14:21 · 594 阅读 · 0 评论