Commit 704c01e0 by BellCodeEditor

auto save

parent f8d43f5d
Showing with 20 additions and 3 deletions
......@@ -3,7 +3,6 @@ screen=turtle.Screen()
len1=screen.textinput("提示","你的新年寄语")
screen.bgcolor("red")
pen=turtle.Pen()
pen.goto(-1,1)
pen.write(len1,font=("Times",25,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -6,7 +6,7 @@ len=int(len)
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("诺依,\nturtle真好用,\n我会在\n画布写字啦!——悟空",font=("Times",24,"normal"))
pen.write("诺依,\nturtle真好用,\n我会在画布写字啦!\n——悟空",font=("Times",22,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(5)
......
i=4
username="python"
userpassword="1234567"
while True:
if i>0:
name=input("请输入用户名:")
password=input('请输入密码:')
i-=1
if name==username and password==userpassword:
print("登录成功!")
break
elif name != username:
print("用户名错误,请重新输入")
continnue
elif password != userpassword:
print("密码输入有误,请重新输入")
print("温馨提示,您还有"+str(i)+"次机会")
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