摘要:
from random import randomdef printIntro(): print("这个程序模拟两个选手A和B的兵乓球比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a = eval(input("请输入选手A的能力值 阅读全文
摘要:
import jieba txt = open("西游记.txt", "r", encoding='utf-8').read() words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: continue el 阅读全文