Python程序语言设计(二)

1.编写程序在屏幕中心绘制五环。
'''
import turtle
turtle.color("blue")
turtle.penup()
turtle.goto(-110,25)
turtle.pendown()
turtle.circle(45)
turtle.color("black")
turtle.penup()
turtle.goto(0,25)
turtle.pendown()
turtle.circle(45)
turtle.color("red")
turtle.penup()
turtle.goto(110,25)
turtle.pendown()
turtle.circle(45)
turtle.color("yellow")
turtle.penup()
turtle.goto(-55,-75)
turtle.pendown()
turtle.circle(45)
turtle.color("green")
turtle.penup()
turtle.goto(55,-75)
turtle.pendown()
turtle.circle(45)
'''

你可能感兴趣的:(Python程序语言设计(二))