![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
qq_37007819
这个作者很懒,什么都没留下…
展开
-
安装词云图常见问题
安装词云图常见问题error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: https://visualstudio.microsoft.com/downloads/这个地址 进入下载对应的python版本对应的词云图包然后pip 安装即可安装成功如下图:...原创 2020-06-23 20:51:32 · 312 阅读 · 0 评论 -
NumPy包的安装
NumPy包安装然后打开pychrom ,导入numpy执行以下代码from numpy import *print(eye(4))# 运行结果如下:[[1. 0. 0. 0.] [0. 1. 0. 0.] [0. 0. 1. 0.] [0. 0. 0. 1.]]原创 2020-06-21 20:51:47 · 232 阅读 · 0 评论 -
采用递归的方式查询字符索引
查询字符串部分字符索引,并返回索引成一个元组形式递归在字符串中的应用list1 = []def findall(str, s): # find()方法没找到返回-1 a = str.find(s, 0, len(str)) if a == 0: list1.append(a) elif a > 0: list1.append(list1[-1] + a + len(s)) else: print('没找到')原创 2020-06-20 20:40:55 · 128 阅读 · 0 评论