- 博客(3)
- 收藏
- 关注
原创 B mi计算器
import turtle height = float(turtle.textinput(‘身高’, ‘请输入你的身高(米)’)) weight = float(turtle.textinput(‘体重’, ‘请输入你的体重(千克)’)) BMI = weight / height**2 BMI = round(BMI, 1) text = ‘’ color = ‘’ if BMI < 18.5: color = ‘blue’ text = ‘偏瘦’ elif 18.5 <= BMI <
2022-12-18 13:26:52
372
1
原创 月饼2022代码
import turtle t = turtle.Pen() # 画笔用于画图 t.speed(0) 花纹颜色 饼身颜色 画 饼身部分 def outfill_flower(flower_num: “花瓣数量”, flower_color: “花瓣颜色”): for i in range(flower_num): t.left(i * (360 // flower_num)) t.color(flower_color) t.penup() t.forward(200) t.pendown() t.fill
2022-12-18 13:21:10
95
1
原创 PYthon logo
https://lunar-turtle.codemao.cn/?entry=share&action=view_work&work_id=167093343
2022-11-10 14:36:18
297
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人