2023年12月11日
摘要: import requests url = "https://cn.bing.com/" for i in range(20): response = requests.get(url) print("返回状态:", response.status_code) print("文本内容:", resp 阅读全文
posted @ 2023-12-11 18:50 严奕 阅读(7) 评论(0) 推荐(0) 编辑
2023年11月22日
摘要: import turtle, datetime def drawLine(draw): turtle.pendown() if draw else turtle.penup() turtle.fd(40) turtle.right(90) def drawDigit(digit): drawLine 阅读全文
posted @ 2023-11-22 12:34 严奕 阅读(5) 评论(0) 推荐(0) 编辑
2023年10月31日
摘要: #03超市抹零行为money_all=56.75+72.91+88.5+26.37+68.51money_all_str=str(money_all)print("商品总金额:"+money_all_str)money_real=int(money_all)money_real_str=str(mo 阅读全文
posted @ 2023-10-31 22:49 严奕 阅读(10) 评论(0) 推荐(1) 编辑
2023年10月30日
摘要: import random def monte_carlo_pi(num): count = 0 for i in range(num): x, y = random.uniform(-1, 1), random.uniform(-1, 1) if x**2 + y**2 <= 1: count + 阅读全文
posted @ 2023-10-30 12:30 严奕 阅读(20) 评论(0) 推荐(0) 编辑