会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Lydia'summer
博客园
首页
新随笔
联系
订阅
管理
2020年10月11日
用python计算圆周率PI
摘要: from math import fabs #导入数学模块 from time import perf_counter #导入时间模块 def Bar(i): #动态文本条 N = pow(10,level) a = int((i/N)*50) b = 50 - a Y , N = '*' * a
阅读全文
posted @ 2020-10-11 08:45 Lydia'summer
阅读(157)
评论(0)
推荐(0)
2020年9月15日
叠加等边三角形绘制
摘要: import turtle turtle .pu() turtle .fd(-120) turtle.pensize(5) turtle.width(5) turtle.pencolor("gold") turtle.pd() turtle.fd(250) turtle.seth(120) turt
阅读全文
posted @ 2020-09-15 19:27 Lydia'summer
阅读(227)
评论(0)
推荐(0)
六角形的绘制
摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() turtle.left(30) turtle.forward(144) turtle.right(60) turtle.forward(144) turtle.right(60) tu
阅读全文
posted @ 2020-09-15 19:25 Lydia'summer
阅读(125)
评论(0)
推荐(0)
五角星绘制
摘要: import turtle turtle.fillcolor("red") turtle.begin_fill() count=1 while count<=5: turtle.forward(500) turtle.right(144) count+=1 turtle.end_fill()
阅读全文
posted @ 2020-09-15 19:22 Lydia'summer
阅读(82)
评论(0)
推荐(0)
公告