diff --git a/1.py b/1.py new file mode 100644 index 0000000..03cfc3e --- /dev/null +++ b/1.py @@ -0,0 +1,30 @@ +import turtle +#文字 +pen= turtle.Pen() +screen = turtle.Screen() +screen.bgcolor("blue") +pen.penup() +pen.goto(100,-100) +pen.write("春眠不觉晓\n处处问题鸟", font=("times",30,"normal")) +pen.hideturtle() + + +pen2=turtle.Pen() +pen2.pensize(5) + +len=screen.textinput("请输入","你想要多大的爱心啊") +newlen=int(len) + +pen2.pencolor("red") +pen2.left(45) +pen2.forward(2*newlen) +pen2.circle(newlen,180) +pen2.right(90) +pen2.circle(newlen,180) +pen2.forward(2*newlen) +pen2.hideturtle() +turtle.done() + + + + diff --git a/2.py b/2.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/2.py diff --git a/qiu1.py b/qiu1.py new file mode 100644 index 0000000..59465fb --- /dev/null +++ b/qiu1.py @@ -0,0 +1,4 @@ +import turtle +screen=turtle.Screen() +screen.textinput("姓名","你的名字是:") +turtle.done \ No newline at end of file