编程语言
首页 > 编程语言> > python day01

python day01

作者:互联网

import turtle
turtle.width(7)
turtle.penup()
turtle.goto(-70,0)
turtle.color(“red”)
turtle.pendown()
turtle.circle(40)

turtle.penup()
turtle.goto(-15,0)
turtle.color(“yellow”)
turtle.pendown()
turtle.circle(40)

turtle.penup()
turtle.goto(30,0)
turtle.color(“black”)
turtle.pendown()
turtle.circle(40)

turtle.penup()
turtle.goto(-37,-30)
turtle.color(“blue”)
turtle.pendown()
turtle.circle(40)

turtle.penup()
turtle.goto(-4,-30)
turtle.color(“green”)
turtle.pendown()
turtle.circle(40)
#这是一个用海龟画的乞丐版奥运五环(仅仅只是画出来了带颜色的⚪而已)python的命名规则
python的命名规则

标签:turtle,penup,python,day01,40,color,pendown,circle
来源: https://blog.csdn.net/wtmwudi/article/details/121005992