Commit 1c24a039 by BellCodeEditor

save project

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