会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ywo-
博客园
首页
新随笔
新文章
联系
管理
订阅
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:49 严奕
阅读(16)
评论(0)
推荐(0)
2023年11月22日
7段数码管绘制
摘要: 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:33 严奕
阅读(14)
评论(0)
推荐(0)
2023年10月31日
2.6.2
摘要: #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:48 严奕
阅读(21)
评论(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:29 严奕
阅读(42)
评论(0)
推荐(0)
公告