摘要: import jieba txt = open("聊斋志异白话简写版.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: conti 阅读全文
posted @ 2021-12-12 10:42 森林惹 阅读(63) 评论(0) 推荐(0)
摘要: import randomdef printIntro(): print("这个程序模拟量个选手A和B的某种竞技比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = eval(input("请输入选手A的能力值(0-1): ")) 阅读全文
posted @ 2021-12-12 10:38 森林惹 阅读(30) 评论(0) 推荐(0)
摘要: [mysqld]# 设置3306端口port=3306# 设置mysql的安装目录 是你的文件路径 basedir=D:\mysql-8.0.26-winx64\mysql-8.0.26-winx64# 设置mysql数据库的数据的存放目录 是你的文件路径data文件夹自行创建#datadir=E: 阅读全文
posted @ 2021-12-12 00:56 森林惹 阅读(31) 评论(0) 推荐(0)