摘要: import jiebatxt=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read()excludes = {"什么","一个","我们","你们","如今","说道","知道","姑娘",\ "起来","这里","出来","众人","那里" 阅读全文
posted @ 2021-11-14 11:57 徐匡奕达 阅读(40) 评论(0) 推荐(0)
摘要: NumPy篇 numpy.around() 函数返回指定数字的四舍五入值 numpy.floor() numpy.floor() 返回小于或者等于指定表达式的最大整数,即向下取整 numpy.ceil() numpy.ceil() 返回大于或者等于指定表达式的最小整数,即向上取整 numpy.rec 阅读全文
posted @ 2021-11-14 10:19 徐匡奕达 阅读(30) 评论(0) 推荐(0)
摘要: from random import randomdef printIntro(): print("54号徐匡奕达的程序模拟两个选手A和B的排球比赛") print("程序需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a=eval(input("请输入选手A的能力 阅读全文
posted @ 2021-11-14 10:14 徐匡奕达 阅读(50) 评论(0) 推荐(0)
摘要: import jiebatxt=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read()excludes = {"什么","一个","我们","你们","如今","说道","知道","姑娘",\ "起来","这里","出来","众人","那里" 阅读全文
posted @ 2021-11-14 10:05 徐匡奕达 阅读(350) 评论(0) 推荐(0)
摘要: print(' * * * * *\ n* *\n* @ @ *\n* *\n* @ *\n* *\n * *\n * *\n * * * * *') 阅读全文
posted @ 2021-09-06 23:32 徐匡奕达 阅读(13) 评论(0) 推荐(0)