Commit 1c24a039 by BellCodeEditor

save project

parent 38e26352
Showing with 11 additions and 30 deletions
# 利用write()帮助悟空给诺依回信吧~ username="pyton"
import turtle userpassword="123456"
screen=turtle.Screen() while True:
screen.bgcolor("pink") name=input("请输入用户名")
password=input("请输入密码")
if name == username and password == userpassword:
len=screen.textinput("标题","你想要多大的爱心") print("登录成功")
lovesize=int(len) break
#画爱心 print("用户名和密码错误 请重新输入")
pen=turtle.Pen() print("欢迎来到贝尔")
pen.left(45) \ No newline at end of file
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("123",font=("Times",30,"normal"))
pen.hideturtle()
pen1.hideturtle()
turtle.done()
# pen=turtle.Pen()
# pen.write("啦啦\n啦啦\n啦啦\n啦啦绿\n",font=("Times",30,"normal"))
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