Commit 01087a06 by BellCodeEditor

auto save

parent fe93401f
Showing with 29 additions and 7 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) #red#blue
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) import turtle
name=input("请输入你的用户名") pen=turtle.Pen()
password=input("请输入你的密码") turtle.bgcolor("lightskyblue")
if username==name and userpassword==password: pen.fillcolor("salmon")
print("登录成功") pen.begin_fill()
\ No newline at end of file for i in range(4):
pen.forward(100)
pen.right(90)
pen.end_fill()
pen.fillcolor("crimson")
pen.begin_fill()
pen.left(45)
pen.forward(73)
pen.right(90)
pen.forward(73)
pen.end_fill()
pen.penup()
pen.fillcolor("orange")
pen.goto(60,-30)
pen.left(45)
pen.begin_fill()
pen.pendown()
for i in range(4):
pen.forward(20)
pen.right(90)
pen.end_fill()
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