Commit 0931c071 by BellCodeEditor

save project

parent 8c68bf75
Showing with 9 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~ username="python"
import turtle userpassword="123456"
screen=turtle.Screen() a=input("请输入账号:")
screen.bgcolor("light blue") b=input("请输入密码:")
len=screen.textinput("提示","你想要多大的爱心:") if username==a and userpassword==b:
lovesize=int(len) print("登陆成功")
pen=turtle.Pen() else:
pen.write("你好\n诺依.",font=("Times",30,"normal")) print("登陆失败")
pen.hideturtle() \ No newline at end of file
pen.up()
pen.goto(-100,0)
pen.down()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
turtle.done()
\ 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