太难了,画不出来,网上搜索的只有国旗的搜索结果。
1条回答 默认 最新
- CSDN专家-天际的海浪 2022-01-18 22:27关注
就是循环5次,画5个花瓣,用turtle 应该好画
你题目的解答代码如下:import turtle turtle.setup(1100,800,100,100) turtle.hideturtle()#隐藏小海龟 turtle.speed(0) turtle.fillcolor("red") turtle.pencolor("red") turtle.up() turtle.goto(-480,320) turtle.down() turtle.begin_fill() for i in range(2): turtle.forward(960) turtle.right(90) turtle.forward(640) turtle.right(90) turtle.end_fill() turtle.fillcolor("white") turtle.pencolor("white") for i in range(5): turtle.up() turtle.goto(0,0) turtle.seth(90+i*72) turtle.down() turtle.begin_fill() turtle.left(63) turtle.circle(-160,144) turtle.right(145) turtle.circle(70,80) turtle.circle(-70,90) turtle.circle(80,90) turtle.end_fill() turtle.fillcolor("red") turtle.pencolor("red") for i in range(5): turtle.up() turtle.goto(0,0) turtle.seth(90+i*72) turtle.down() turtle.left(52) turtle.pensize(5) turtle.circle(-110,80) turtle.pensize(1) turtle.up() turtle.forward(50) turtle.right(162) turtle.down() turtle.begin_fill() for j in range(5): turtle.forward(50) turtle.right(144) turtle.end_fill() turtle.done()
如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报 编辑记录
悬赏问题
- ¥20 西门子S7-Graph,S7-300,梯形图
- ¥50 用易语言http 访问不了网页
- ¥50 safari浏览器fetch提交数据后数据丢失问题
- ¥15 matlab不知道怎么改,求解答!!
- ¥15 永磁直线电机的电流环pi调不出来
- ¥15 用stata实现聚类的代码
- ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
- ¥20 docker里部署springboot项目,访问不到扬声器
- ¥15 netty整合springboot之后自动重连失效
- ¥15 悬赏!微信开发者工具报错,求帮改