Commit 0931c071 by BellCodeEditor

save project

parent 8c68bf75
Showing with 9 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的爱心:")
lovesize=int(len)
pen=turtle.Pen()
pen.write("你好\n诺依.",font=("Times",30,"normal"))
pen.hideturtle()
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
username="python"
userpassword="123456"
a=input("请输入账号:")
b=input("请输入密码:")
if username==a and userpassword==b:
print("登陆成功")
else:
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