Commit 39a6e386 by BellCodeEditor

save project

parent 8a8f2eb9
Showing with 7 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
a1=screen.textinput("姓名框","你的名字是:")
b2=screen.textinput("爱心","你想要多大爱心:")
pen.penup()
pen.goto(0,-150)
pen.pendown()
pen.write("Hi,诺依!\n我收到你的贺卡了!\n——悟空",font=("Times",30,"normal"))
pen.write("Hi!"+a1+"!你好呀!\n交个朋友吧!\n——编辑者",font=("Times",30,"normal"))
#123
import random
list=[20,30,40,50,55]
len=random.choice(list)
#list=[20,30,40,50,55]
#len=random.choice(list)
len=int(b2)
pen.penup()
pen.goto(0,0)
pen.pendown()
......
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