摘要: def getDataDict(): dataFrame = pandas.read_excel('D:/Py/2010人口普查.xlsx',skiprows=2) raceList = list(map(lambda s:str(s).replace("\xa0",""),dataFrame.il 阅读全文
posted @ 2020-05-10 12:27 伍鸿林 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-01 13:40 伍鸿林 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 代码 import wordcloudimport jieba f=open("gcd宣言.txt","r",encoding="utf-8")t=f.read()f.close()txt=" ".join(jieba.lcut(t))w=wordcloud.WordCloud(font_path= 阅读全文
posted @ 2020-04-08 22:34 伍鸿林 阅读(182) 评论(0) 推荐(0) 编辑
摘要: https://www.w3school.com.cn/index.html 这是一个名叫W3school的TML教程网站,这上面对HTML讲解非常好,感兴趣的可以去看看哦。 阅读全文
posted @ 2020-04-08 10:44 伍鸿林 阅读(448) 评论(1) 推荐(2) 编辑
摘要: python join 和 split方法简单的说是:join用来连接字符串,split恰好相反,拆分字符串的。 .join() join将 容器对象 拆分并以指定的字符将列表内的元素(element)连接起来,返回字符串(注:容器对象内的元素须为字符类型) 1 2 3 4 >>> a = ['no 阅读全文
posted @ 2020-04-08 10:32 伍鸿林 阅读(216) 评论(0) 推荐(0) 编辑