摘要: 模拟体育竞技分析‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬a.采用乒乓球比赛规则(学号尾号为0,1,2,3同学必做及格题)。‪‬‪‬‪ 阅读全文
posted @ 2023-12-26 23:44 gzygshyq 阅读(36) 评论(0) 推荐(0)
摘要: numpy、scipy、pandas、matplotlib的读书报告:‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬ 评分 阅读全文
posted @ 2023-12-26 23:26 gzygshyq 阅读(45) 评论(0) 推荐(0)
摘要: jieba分词尾号为1,2,3的同学做,西游记相关的分词,出现次数最高的20个。 代码如下: print("学号后两位为03(2021310143103)") import jieba txt = open("E:\\大学\\Python\\西游记.txt","r",encoding='gb1803 阅读全文
posted @ 2023-12-26 17:39 gzygshyq 阅读(38) 评论(0) 推荐(0)
摘要: 代码如下: 1 import pygame 2 import sys 3 import random 4 # 素材参考地址:https://www.aigei.com/s?q=flappy+bird&type=2d 5 print("学号后两位为03(2021310143103)") 6 7 cla 阅读全文
posted @ 2023-12-24 16:35 gzygshyq 阅读(39) 评论(0) 推荐(0)
摘要: 爬虫作业 一、请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。搜狗主页(尾号3,4学号做) import requests wan = "https://www.sogou.com/" def 阅读全文
posted @ 2023-12-17 15:33 gzygshyq 阅读(43) 评论(0) 推荐(0)
摘要: 七段数码管绘制 #请学号最后一个尾号为(2,3)的同学。画出,系统时间。具体包括:年,月,日,小时,分。 import turtle, datetimedef drawGap(): #绘制码管间距 turtle.penup() turtle.fd(5)def drawLine(draw): #绘制单 阅读全文
posted @ 2023-11-19 17:36 gzygshyq 阅读(82) 评论(0) 推荐(0)
摘要: 一、计算圆周率pi的方法 (一)公式法 pi=0N=eval(input()) for 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(pi) (二)蒙特卡罗方法 #e.6.1(p115) 阅读全文
posted @ 2023-10-30 12:32 gzygshyq 阅读(1569) 评论(0) 推荐(0)
摘要: #11_1运行超市抹零结账行为money=11.12+25.28+23.76money_str=str(money)print('商品总金额为:' + money_str)money2=int(money)money2_str=str(money2)print('实收金额为:' + money2_s 阅读全文
posted @ 2023-10-29 21:58 gzygshyq 阅读(52) 评论(0) 推荐(0)