会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
gsd_tt
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2019年4月3日
运用jieba库分词并生成词云库。
摘要: 话不多说,直接上代码。 import jieba txt = open("C:\\Users\\Administrator\\Desktop\\流浪地球","r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for wo
阅读全文
posted @ 2019-04-03 23:19 gsd_tt
阅读(288)
评论(0)
推荐(0)
2019年3月27日
用python去描绘汉诺塔的动态实现。
摘要: 话不多说,直接上代码及汉诺塔动态实现图。。。 import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def push(self, it
阅读全文
posted @ 2019-03-27 21:46 gsd_tt
阅读(199)
评论(0)
推荐(0)
2019年3月20日
用python计算圆周率并用进度条显示计算进度。
摘要: 一、安装tqdm库 1、利用cmd命令提示符,进入python所在的文件盘 2、输入 pip install tqdm 即可安装tqdm库 二、输入代码 三、运行结果
阅读全文
posted @ 2019-03-20 23:20 gsd_tt
阅读(251)
评论(0)
推荐(0)
2019年3月13日
用python画一颗彩虹色爱心送给女朋友!!!
摘要: 1.准备工作: 代码中用到numpy和matplotlib,需要先安装这两个库 pip3 install numpypip3 install matplotlib 会用到的数学公式:(x^2+y^2-1)^3+x^2*y^3=0 2.编写代码: importnumpy asnp importmatp
阅读全文
posted @ 2019-03-13 23:05 gsd_tt
阅读(5074)
评论(0)
推荐(0)
上一页
1
2
公告