摘要: import wximport shuruclass MyFrame(wx.Frame): def __init__(self,parent,id): wx.Frame.__init__(self,parent,id,title="班级信息收集程序",size=(600,400)) pl = wx. 阅读全文
posted @ 2021-12-12 01:56 35p 阅读(51) 评论(0) 推荐(0)
摘要: from random import randomdef printIntro(): print("这个程序模拟两个选手A和B的兵乓球比赛") print("程序运行需要A和B的能力值(以0到1之间的小数表示)")def getInputs(): a = eval(input("请输入选手A的能力值 阅读全文
posted @ 2021-11-13 22:35 35p 阅读(41) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2021-11-13 22:27 35p 阅读(60) 评论(0) 推荐(0)
摘要: import turtle, datetimedef drawGap(): turtle.penup() turtle.fd(5)def drawLine(draw): drawGap() turtle.pendown() if draw else turtle.penup() turtle.fd( 阅读全文
posted @ 2021-10-23 18:52 35p 阅读(34) 评论(0) 推荐(1)
摘要: pi=0N=100for k in range(N): pi+=1/pow(16,k) * (4/(8*k+1)-2/(8*k+4)-1/(8*k+5)-1/(8*k+6)) print("圆周率值是:{}".format(pi)) 阅读全文
posted @ 2021-10-14 22:44 35p 阅读(28) 评论(0) 推荐(0)
摘要: 03 04 05 06 2.62 阅读全文
posted @ 2021-09-12 09:40 35p 阅读(23) 评论(0) 推荐(0)
摘要: 实战一 实战二 实战三 实战四 阅读全文
posted @ 2021-09-04 22:19 35p 阅读(36) 评论(0) 推荐(0)