Commit 2829b7e5 by BellCodeEditor

auto save

parent 55915a02
Showing with 35 additions and 2 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.pensize(5) pen.pensize(5)
pen.goto(0,0)
pen.pencolor("blue") pen.pencolor("blue")
pen.circle(50) pen.circle(50)
pen.penup()
pen.goto(110,0)
pen.pendown()
pen.pencolor("black") pen.pencolor("black")
pen. pen.circle(50)
pen.penup()
pen.goto(220,0)
pen.pendown()
pen.pencolor("red")
pen.circle(50)
pen.penup()
pen.goto(330,0)
pen.pendown()
pen.pencolor("yellow")
pen.penup()
pen.goto(50,-70)
pen.pendown()
pen.circle(50)
pen.pencolor("green")
pen.penup()
pen.goto(160,-70)
pen.pendown()
pen.circle(50)
turtle.done() turtle.done()
\ No newline at end of file
username="python"
userpassword="123456"
while True:
name=input("请输入用户名:")
password=input("请输入密码:")
if name==username and password==userpassword:
print("登录成功!")
break
print("错误!密码错误!")
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