_yesyes

导航

 

2021年12月11日

摘要: import wxclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="班级信息收集程序",size=(600,400)) pl = wx.Panel(self) 阅读全文
posted @ 2021-12-11 23:13 _yesyes 阅读(27) 评论(0) 推荐(0)
 

2021年11月14日

摘要: 阅读全文
posted @ 2021-11-14 11:51 _yesyes 阅读(24) 评论(0) 推荐(0)
 
摘要: 1、Numpy NumPy(Numerical Python) 是 Python 语言的一个扩展程序库,支持大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。 NumPy 是一个运行速度非常快的数学库,主要用于数组计算,包含: 一个强大的N维数组对象 ndarray。 广播功能函数。 阅读全文
posted @ 2021-11-14 11:46 _yesyes 阅读(38) 评论(0) 推荐(0)
 
摘要: print("乒乓球比赛,学号2020310143003")from random import randomdef printInfo():print('这个程序模拟两个选手A和B的某种竞技比赛')print('程序运行需要A和B的能力值(以0到1之间的小数表示)')def getInputs() 阅读全文
posted @ 2021-11-14 11:41 _yesyes 阅读(26) 评论(0) 推荐(0)
 
摘要: print("乒乓球比赛,学号2020310143041")from random import randomdef printInfo():print('这个程序模拟两个选手A和B的某种竞技比赛')print('程序运行需要A和B的能力值(以0到1之间的小数表示)')def getInputs() 阅读全文
posted @ 2021-11-14 11:37 _yesyes 阅读(62) 评论(0) 推荐(0)
 
摘要: import jieba txt = open("《西游记》.txt", "r", encoding='utf-8').read()words = jieba.lcut(txt) # 使用精确模式对文本进行分词counts = {} # 通过键值对的形式存储词语及其出现的次数 for word in 阅读全文
posted @ 2021-11-14 11:34 _yesyes 阅读(54) 评论(0) 推荐(0)
 

2021年9月14日

摘要: 第三题 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=str(money 阅读全文
posted @ 2021-09-14 23:54 _yesyes 阅读(27) 评论(0) 推荐(0)
 

2021年9月5日

摘要: 一直以来听大家都说Python学好很好用呀,最近刚接触Python但还没有深入了解学习。通过预习Python我觉得它是一个很神奇的东西,竟然可以用它做出知乎和豆瓣等等。“人生苦短,我用Python”是我刚接触Python就看到的一句话。现在只学习了简单的输出“hello world”,相信以后会学到 阅读全文
posted @ 2021-09-05 23:33 _yesyes 阅读(64) 评论(0) 推荐(0)
 
摘要: print(" * * * * * \n * * \n* @ @ *\n* *\n* @ *\n* *\n * * \n * * * * *") 3003 阅读全文
posted @ 2021-09-05 23:14 _yesyes 阅读(18) 评论(0) 推荐(0)