摘要: 8.1:import random def ping_pong_match(): player1_score = 0 player2_score = 0 while True: # 随机决定得分方 winner = random.choice([1, 2]) if winner == 1: play 阅读全文
posted @ 2025-05-25 18:45 千树(好困版) 阅读(63) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202505/3608548-20250518032352504-378275091.png) ![](https://img2024.cnblogs.com/blog/3608548/202505/3608548-20250518032400365-35627464.png) ![](https://img 阅读全文
posted @ 2025-05-18 03:24 千树(好困版) 阅读(16) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202504/3608548-20250420162419154-914571736.png) ![](https://img2024.cnblogs.com/blog/3608548/202504/3608548-20250420162428494-599394092.png) ![](https://im 阅读全文
posted @ 2025-04-20 16:25 千树(好困版) 阅读(30) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202504/3608548-20250402121155679-925420359.png) ![](https://img2024.cnblogs.com/blog/3608548/202504/3608548-20250402121203762-314257615.png) ![](https://im 阅读全文
posted @ 2025-04-02 12:12 千树(好困版) 阅读(27) 评论(0) 推荐(0)
摘要: from tqdm import tqdm def calculate_pi(iterations): pi = 0 sign = 1 denominator = 1 for i in tqdm(range(iterations), desc="Calculating Pi"): pi += sig 阅读全文
posted @ 2025-04-02 11:42 千树(好困版) 阅读(71) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250330181652369-976193477.png) ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250330181700292-12078233.png) ![](https://img 阅读全文
posted @ 2025-03-30 18:17 千树(好困版) 阅读(9) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250323193012351-110588189.png) ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250323193019201-671485344.png) ![](https://im 阅读全文
posted @ 2025-03-23 19:30 千树(好困版) 阅读(45) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250316192603245-479558971.png) ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250316192610876-1908263372.png) ![](https://i 阅读全文
posted @ 2025-03-16 19:26 千树(好困版) 阅读(18) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250316191610066-1448537715.png) ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250316191617456-1808973678.png) ![](https:// 阅读全文
posted @ 2025-03-16 19:17 千树(好困版) 阅读(14) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250308214613954-1252135574.png) ![](https://img2024.cnblogs.com/blog/3608548/202503/3608548-20250308214623309-616048613.png) ![](https://i 阅读全文
posted @ 2025-03-08 21:47 千树(好困版) 阅读(25) 评论(0) 推荐(0)