摘要: 0310033003600350038003000331702906330564 1)模拟体育竞技分析:(不同学号选做不同题目,必做题)‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‭‬‪‬‪‬ 阅读全文
posted @ 2023-12-18 22:42 过过过过过过 阅读(46) 评论(0) 推荐(0)
摘要: fly bird游戏 import pygameimport random pygame.init() WIDTH = 288HEIGHT = 512screen = pygame.display.set_mode((WIDTH, HEIGHT))pygame.display.set_caption 阅读全文
posted @ 2023-12-17 22:47 过过过过过过 阅读(47) 评论(0) 推荐(0)
摘要: 《Python数据科学手册》中介绍了四个重要的数据科学库:NumPy、Pandas、Matplotlib和Scipy。 NumPy NumPy是Python中用于科学计算的基础包,提供了多维数组对象、各种派生对象(如掩码数组和矩阵)以及用于数组计算的各种例程。NumPy的核心功能是ndarray(N 阅读全文
posted @ 2023-12-17 22:13 过过过过过过 阅读(43) 评论(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 eli 阅读全文
posted @ 2023-12-17 22:03 过过过过过过 阅读(42) 评论(0) 推荐(0)
摘要: 一、请用requests库的get()函数访问如下一个网站20次,打印返回状态,text()内容,计算text()属性和content属性所返回网页内容的长度。(不同学号选做如下网页,必做及格) import requestsfrom bs4 import BeautifulSoupurl='htt 阅读全文
posted @ 2023-12-12 23:00 过过过过过过 阅读(24) 评论(0) 推荐(0)
摘要: from random import randomfrom math import sqrtimport timeDARTS=10**7hits=0.0a=1start=time.perf_counter()for i in range(1,DARTS+1): x,y=random(),random 阅读全文
posted @ 2023-10-29 22:29 过过过过过过 阅读(52) 评论(0) 推荐(0)