Commit bb118369 by BellCodeEditor

auto save

parent eac7be35
Showing with 44 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
turtle.color("red")
turtle.begin_fill()
turtle.left(45)
turtle.forward(2*len)
turtle.circle(len,180)
turtle.right(90)
turtle.circle(len,180)
turtle.forward(2*len)
turtle.end_fill()
turtle.bgcolor("black")
turtle.penup()
turtle.goto(100,-100)
turtle.write("你好!",font=("黑体",40,"bold"))
turtle.hideturtle()
turtle.down
while True:
user="n"
ps="222333"
b=input("输入用户名:")
c=input("输入密码:")
if user==b and ps==c:
print("登录成功")
break
print("欢迎来到魔兽世界")
\ No newline at end of file
username="python"
userpassword="123456"
while True:
a=input("username:")
b=input("userpassword")
if username==a and userpassword==b:
print("登录成功")
break
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