摘要: import randomimport os # 介绍比赛以及程序def print_introduce():print("This is a badminton game simulation program")print("The program requires two players' ab 阅读全文
posted @ 2023-12-17 19:12 不会三分也一样 阅读(19) 评论(0) 推荐(0)
摘要: 1. 计算数组中的统计量pythonCopy codeimport numpy as np # 创建一个示例数组arr = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) # 计算数组的均值、标准差和和mean = np.mean(arr)std_dev = 阅读全文
posted @ 2023-12-17 19:06 不会三分也一样 阅读(53) 评论(0) 推荐(0)
摘要: import pygame # 引用第三方模块import random # 随机产生数据import timefrom pygame.locals import *'''抽象出来一个飞机的基类'''class BasePlane(object): def __init__(self, screen 阅读全文
posted @ 2023-12-17 18:56 不会三分也一样 阅读(23) 评论(0) 推荐(0)
摘要: import requests url = 'https://www.bing.com'for i in range(20): response = requests.get(url) print(f"第{i+1}次访问") print(f'Response status: {response.st 阅读全文
posted @ 2023-12-11 18:47 不会三分也一样 阅读(18) 评论(0) 推荐(0)
摘要: import requests url = 'https://www.bing.com'for i in range(20): response = requests.get(url) print(f"第{i+1}次访问") print(f'Response status: {response.st 阅读全文
posted @ 2023-12-10 15:52 不会三分也一样 阅读(6) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-10-30 22:27 不会三分也一样 阅读(3) 评论(0) 推荐(0)