diy1.py
511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,
pen.write("我爱0)你",font=("Times",30,"normal"))
pen1=turtle.()
pen1.pensizPene(5)
pen1.pencolor("blue")
len=60
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen.hideturtle()
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:随远航")
pen.hidetu