Commit 5e54f5a6 by BellCodeEditor

save project

parent b7e2e628
Showing with 3 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.textinput("名字","你叫什么?")
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
...@@ -11,7 +11,8 @@ pen.write("诺依\n turtle真好用\n 我会打字了",font=("Times",40,"normal" ...@@ -11,7 +11,8 @@ pen.write("诺依\n turtle真好用\n 我会打字了",font=("Times",40,"normal"
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
import random import random
len=random.randint(0,50) len=int(screen.textinput("提示","你TM想要多大的爱心?"))
pen1.pencolor("red") pen1.pencolor("red")
pen1.fillcolor("red") pen1.fillcolor("red")
pen1.begin_fill() pen1.begin_fill()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment