摘要: from random import random def printIntro(): print("学号:3012") print("这个程序模拟两个选手A和B的兵乓球比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs(): a = eva 阅读全文
posted @ 2021-11-14 02:27 苒若 阅读(62) 评论(0) 推荐(0)
摘要: import jieba def takeSecond(elem): return elem[1] def main(): path = "西游记.txt" file = open(path,"r",encoding="utf-8") text=file.read() file.close() wo 阅读全文
posted @ 2021-11-14 02:00 苒若 阅读(46) 评论(0) 推荐(0)