摘要:
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-04-14 12:03
szmtjs10
阅读(2)
评论(0)
推荐(0)
摘要:
2024090106陈嘉怡 已知直线和线外一点求垂点 # 已知直线上一点 x1, y1 = 1, 1 # 直线斜率 k = 2 # 直线外一点 x0, y0 = 3, 4 # 计算直线的截距 b = y1 - k * x1 # 计算垂直线的斜率 k_perpendicular = -1 / k if 阅读全文
posted @ 2025-04-14 11:07
szmtjs10
阅读(20)
评论(0)
推荐(0)