diff --git a/diy1.py b/diy1.py index e69de29..293882e 100644 --- a/diy1.py +++ b/diy1.py @@ -0,0 +1,21 @@ +import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") +len=screen.textinput("100","100") +len=int(len) +pen=turtle.Pen() +pen.write("你好\nSB.",font=("Times",30,"normal")) +pen.hideturtle() +len=60 +pen.penup() +pen.goto(100,100) +pen.pendown() +pen.pensize(5) +pen.pencolor("red") +pen.left(45) +pen.forward(2*len) +pen.circle(len,180) +pen.right(90) +pen.circle(len,180) +pen.forward(2*len) +turtle.done() diff --git "a/\345\244\247\345\202\273\351\200\274.py" "b/\345\244\247\345\202\273\351\200\274.py" index 44be5ea..9148a26 100644 --- "a/\345\244\247\345\202\273\351\200\274.py" +++ "b/\345\244\247\345\202\273\351\200\274.py" @@ -1,4 +1,14 @@ import turtle -pen=turtle.Pen() -pen.write("您好",font=("times",20,"normal")) -turtle.done() +# pen=turtle.Pen() +# pen.write("您好",font=("times",20,"normal")) +pen1=turtle.Pen() +pen1.pensize(30) +pen1.pencolor("red") +pen1.left(45) +pen1.forward(100) +pen1.circle(50,180) +pen1.right(90) + +pen1.circle(50,180) +pen1.forward(100) +turtle.done() \ No newline at end of file