会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
88888888b
博客园
首页
新随笔
联系
订阅
管理
2023年12月28日
体育模拟竞技
摘要: 模拟乒乓球比赛 import random #引用random库 def sportgame(): print("Welcome to the sportgame") print("这个程序将模拟乒乓球比赛") #介绍程序 def InputPlayer(): player1 = eval(inpu
阅读全文
posted @ 2023-12-28 22:23 wdnmd15913
阅读(15)
评论(0)
推荐(0)
2023年12月26日
西游记jieba分词
摘要: 引用jiaba库 点击查看代码 import jieba 读取文件,文件路径填写文件放取的位置 并且使用jieba分词的精确模式 点击查看代码 txt = open('西游记.txt', 'r', encoding='utf-8').read() words = jieba.lcut(txt) co
阅读全文
posted @ 2023-12-26 20:00 wdnmd15913
阅读(68)
评论(0)
推荐(0)
公告