摘要: NumPy篇 numpy.around() 函数返回指定数字的四舍五入值 numpy.floor() numpy.floor() 返回小于或者等于指定表达式的最大整数,即向下取整 numpy.ceil() numpy.ceil() 返回大于或者等于指定表达式的最小整数,即向上取整 numpy.rec 阅读全文
posted @ 2021-11-14 12:00 迂幵 阅读(35) 评论(0) 推荐(0)
摘要: print("模拟排球比赛,学号为34饶伟超")from random import random def printInfo(): # 打印程序介绍信息 print('这个程序模拟两个选手A和B的某种竞技比赛') print('程序运行需要A和B的能力值(以0到1之间的小数表示)') def ge 阅读全文
posted @ 2021-11-14 11:58 迂幵 阅读(41) 评论(0) 推荐(0)
摘要: import jieba with open ("D:\红楼梦.txt",encoding="ANSI") as file: f = file.read() del_list ={"什么","一个","我们","那里","如今","你们","说道","起来","姑娘","这里","出来","他们", 阅读全文
posted @ 2021-11-14 11:49 迂幵 阅读(57) 评论(0) 推荐(0)
摘要: money_all=56.00+72.00+88.50+26.30+68.50money_all_str=str(money_all)print("商品总金额为:"+money_all_str)money_real=int(money_all)money_real_str= str(money_re 阅读全文
posted @ 2021-09-16 02:19 迂幵 阅读(16) 评论(0) 推荐(0)
摘要: 学习python这一科目是,编程变得更加容易,比c++好用多了,而且功能很多,我希望我可以掌握更多的python内容,学无止境。 阅读全文
posted @ 2021-09-06 23:38 迂幵 阅读(48) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-09-06 23:25 迂幵 阅读(19) 评论(0) 推荐(0)