- 博客(3)
- 收藏
- 关注
原创 jupyter 中绘图字体无法正常显示,字体显示为小方框或plt.legend字体显示为小方框
plt.rcParams['font.family'] = ['Microsoft YaHei', 'SimHei', 'WenQuanYi Micro Hei'] # 按优先级设置字体。情况2:plt.legend(title='地区',loc='upper right', bbox_to_anchor=(1.05, 1), prop=font_prop)font_path = 'C:\\Windows\\Fonts\\msyh.ttc' # 微软雅黑字体路径。# 注册字体并设置全局字体。
2025-05-31 17:24:39
601
原创 Cannot resolve symbol SparkConf
project Structure中进行scala选择,最好选择2.12版本。提示Cannot resolve symbol SparkConf。直接敲导入语句报红(图中 ‘ // ’ 后语句)如图无法像上面一样提示import...导入scala后解决。设置中下载scala。
2025-04-07 11:16:12
219
原创 39: UserWarning: There are several spiders with the same name
D:\anaconda3\Lib\site-packages\scrapy\spiderloader.py:39: UserWarning: There are several spiders with the same name: 以及后面列出的多个名为ChySpider且命名为chy的蜘蛛,分布在不同模块(demo0326.spiders.chy和demo0326.spiders.chy1 )。:在项目目录下,以及项目内各个包含 .py 文件的子目录中查看是否存在 __pycache__ 文件夹。
2025-04-02 16:22:58
317
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅