摘要: 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)
摘要: money_all = 56.75 + 72.91 + 88.50 + 26.37 + 68.51money_all_str = str(money_all)print("商品总金额为:"+money_all_str)money_real = int(money_all)money_real_str 阅读全文
posted @ 2021-09-14 22:49 森林惹 阅读(42) 评论(0) 推荐(0)
摘要: 3028 阅读全文
posted @ 2021-09-06 12:25 森林惹 阅读(29) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-09-06 12:10 森林惹 阅读(15) 评论(0) 推荐(0)