- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 python matplotlib 图形中添加中文
主要参考链接:Python 中,matplotlib绘图无法显示中文的问题matplotlib 无法显示中文,主要原因是没有中文字体库,可以如下添加中文注释import matplotlib.pyplot as plt# 添加中文字体import matplotlib as mplmpl.rcParams['font.sans-serif'] = ['SimHei']# 使用 pl...
2018-10-10 10:21:44 4004
原创 python re.sub 正则表达式过滤指定字符
主要参考链接详解Python中re.subre.sub(pattern, repl, string, count=0, flags=0)Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl. If...
2018-10-07 19:37:23 8113
原创 词云生成的一些注解:wordcloud
本文主要参考连接如下:手把手教你制作 中英文 词云 | python demo词云生成在文本处理中经常遇到,曾经为了生成一幅词云图,费了很大劲,在此做一些注解。wordcloud这是一个常用的词云生成包,wordcloud 包链接,里面有详细的介绍。wordcloud 包基本用法如下:class wordcloud.WordCloud(font_path=None, width=40...
2018-10-07 19:23:22 1137
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人