当前位置:   article > 正文

python画花朵代码_用Python绘制玫瑰花的源代码

用python画玫瑰花代码

import turtle

turtle.setup(1100,1000)

turtle.hideturtle()

turtle.speed(10)

turtle.penup()

turtle.goto(50,-550)

turtle.pensize(5)

turtle.pencolor("black")

turtle.seth(140)

turtle.pendown()

turtle.speed(10)

turtle.circle(-400,60)

turtle.fd(100)

turtle.seth(10)

turtle.fd(50)

turtle.fillcolor("green")

turtle.begin_fill()

turtle.right(40)

turtle.circle(120,80)

turtle.left(100)

turtle.circle(120,80)

turtle.end_fill()

turtle.seth(10)

turtle.fd(90)

turtle.speed(11)

turtle.penup()

turtle.fd(-140)

turtle.seth(80)

turtle.pendown()

turtle.speed(10)

turtle.fd(70)

turtle.seth(160)

turtle.fd(50)

turtle.fillcolor("green")

turtle.begin_fill()</

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/181442
推荐阅读
相关标签
  

闽ICP备14008679号