![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Lvchs_
这个作者很懒,什么都没留下…
展开
-
聚类测试_31省市居民家庭消费水平
学习慕课python聚类测试,出现了float() argument must be a string or a number, not 'list’的错误。 正确的可运行程序如下: import numpy as np#导入numpy库 from sklearn.cluster import KMeans#导入K-means库进行聚类算法 def loadData(filePath): fr = open(filePath,'r+',encoding='UTF-8') lines =原创 2020-08-02 11:36:25 · 1976 阅读 · 3 评论 -
Python词云入门
学习python词云库,一直提示我TypeError: generate() missing 1 required positional argument: 'text'的错误,网上搜了很多原因,没解决,最后发现是我自己太粗心了,落了一个括号。原创 2020-07-30 10:03:01 · 1470 阅读 · 0 评论