Python程序语言设计(二)
2020-03-30 本文已影响0人
陈康_d3f7
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)
'''