Python100例 我的实现展示(56-60例)
from tkinter import *
import turtle
'''56、画图,学用circle画圆形。'''
def test_exam_56():
x1, y1 = 100, 100
x2, y2 = 100, -100
x3, y3 = -100, -100
x4, y4 = -100, 100
# 绘制折线
turtle.penup()
turtle.goto(x1, y1)
turtle.pendown()
turtle.circle(10)
turtle.goto(x2, y2)
turtle.circle(20)
turtle.goto(x3, y3)
turtle.circle(30)
turtle.goto(x4, y4)
turtle.circle(50)
turtle.done()
'''57、画图,学用line画直线。'''
def test_exam_57():
x1, y1 = 100, 100
x2, y2 = 100, -100
x3, y3