Commit 94ae7ba8 by BellCodeEditor

auto save

parent ff4b44fa
Showing with 32 additions and 12 deletions
import turtle
pen=turtle.Pen()
for i in range(4):
pen.forward(200)
pen.right(90)
pen.right(45)
pen.goto(200,-200)
pen.right(135)
pen.forward(200)
pen.goto(200,0)
pen.goto(100,0)
pen.goto(100,-200)
pen.penup()
pen.goto(0,-100)
pen.pendown()
pen.goto(200,-100)
pen.hideturtle()
turtle.done()
\ No newline at end of file
username="python" import turtle
userpasswork=".1111122" pen=turtle.Pen()
name=input("输入你的密码") pen.circle(100,360)
passwork=input("输入你的密码")# 如果用户输入的账号、密码正确,提示登陆成功 pen.left(90)
while True: pen.forward(200)
if userpasswork==name: pen.penup()
print("登陆成功") pen.goto(-100,100)
else: pen.right(90)
print("登陆失败") pen.pendown()
break pen.forward(200)
print("错误,给我滚") pen.hideturtle()
print("来到编程") 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