摘要: from random import randomdef printInfo(): # 打印程序介绍信息 print('模拟体育竟技分析--乒乓球比赛规则--31号') print('这个程序模拟两个选手A和B的某种竞技比赛') print('程序运行需要A和B的能力值(以0到1之间的小数表示)') 阅读全文
posted @ 2021-11-13 16:58 pxxxx 阅读(60) 评论(0) 推荐(0)
摘要: import jiebajieba.setLogLevel(jieba.logging.INFO)txt = open('西游记.txt', 'r', encoding='gb18030').read()words = jieba.lcut(txt)counts = {}for word in wo 阅读全文
posted @ 2021-11-13 15:31 pxxxx 阅读(116) 评论(0) 推荐(0)
摘要: import jiebajieba.setLogLevel(jieba.logging.INFO)txt=open('红楼梦.txt','r',encoding='gb18030').read()words=jieba.lcut(txt)counts={}for word in words: if 阅读全文
posted @ 2021-11-13 14:48 pxxxx 阅读(224) 评论(0) 推荐(0)