- 博客(4)
- 收藏
- 关注
原创 用Matplotlib给子图添加图例时出错ax.legend() TypeError zip argument #2 must support iteration
画图时添加图例 import matplotlib.pyplot as plt line_up, = plt.plot([1,2,3]) plt.legend(line_up, 'Up') plt.show() 报错zip argument #2 must support iteration 应该是legend的参数需要zip形式。 (for label,handle in zip (label...
2019-12-13 17:04:32
2928
原创 用conda安装包出现The environment is inconsistent, please check the package plan carefully
用conda安装包时一直出现The environment is inconsistent, please check the package plan carefully 最近在anaconda里新创建了一个环境,用conda安装某些包比如geopandas,osmnx时会报错The environment is inconsistent, please check the package pl...
2019-11-29 10:25:09
33721
18
原创 读取txt报错ValueError: invalid literal for float() in Python
ValueError: invalid literal for float() in Python 读取txt文件 a=np.loadtxt(filepath,delimiter=',') 读取txt文件时出现错误ValueError: invalid literal for float(),仔细检查之后这个错误出现是因为我的文本文件不是逗号分隔的。改成: a=np.loadtxt(filepat...
2018-11-05 20:37:51
11103
原创 could not determine a constructor for the tag 'tag:yaml.org,2002:python/unicode'
照着官网教程安装anaconda之后,打开时出现could not determine a constructor for the tag ‘tag:yaml.org,2002:python/unicode’ 错误 在网上看了一圈,发现需要将
2018-05-10 16:25:30
4946
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅