摘要: 24级数应二班课堂作业8 阅读全文
posted @ 2025-05-28 21:28 24级数应二班 阅读(11) 评论(0) 推荐(0)
摘要: 24级数应二班课堂作业7 阅读全文
posted @ 2025-05-28 21:28 24级数应二班 阅读(5) 评论(0) 推荐(0)
摘要: 2024010077 马京兴追逐算法 import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation # 初始化参数 speed = 0.1 # 追逐速度 target_speed 阅读全文
posted @ 2025-05-28 21:28 24级数应二班 阅读(26) 评论(0) 推荐(0)
摘要: 2024010077 马京兴 实现外卖平台一个订单的整个流程 class User: def __init__(self, name): self.name = name self.orders = [] # 用户订单列表 def create_order(self, merchant, food, 阅读全文
posted @ 2025-05-28 21:28 24级数应二班 阅读(23) 评论(0) 推荐(0)
摘要: 2024010056 李竞薇 小球碰撞 import pygame import sys # 初始化 Pygame pygame.init() # 设置窗口 WIDTH, HEIGHT = 800, 600 screen = pygame.display.set_mode((WIDTH, HEIGH 阅读全文
posted @ 2025-05-14 11:05 24级数应二班 阅读(40) 评论(0) 推荐(0)
摘要: 李竞薇 2024010056 爬取豆瓣数据 import requests from bs4 import BeautifulSoup def get_douban_movies(): base_url = "https://movie.douban.com/top250" movies_info 阅读全文
posted @ 2025-04-16 10:16 24级数应二班 阅读(29) 评论(0) 推荐(0)
摘要: height = 10.0 count = 0 threshold = 0.01 while True: height *= 0.50 count += 1 if height < threshold: break print(f"小球在低于{threshold}米前总共反弹了{count}次") 阅读全文
posted @ 2025-03-19 10:27 24级数应二班 阅读(28) 评论(0) 推荐(0)
摘要: 2024090106陈嘉怡 已知直线和线外一点求垂点 # 已知直线上一点 x1, y1 = 1, 1 # 直线斜率 k = 2 # 直线外一点 x0, y0 = 3, 4 # 计算直线的截距 b = y1 - k * x1 # 计算垂直线的斜率 k_perpendicular = -1 / k if 阅读全文
posted @ 2025-03-05 11:28 24级数应二班 阅读(57) 评论(0) 推荐(0)