Commit 2d04c72a by BellCodeEditor

save project

parent 5c9b87bd
Showing with 47 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(-100,0)
pen.write(".....",font=("times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(30)
pen1.left(45)
len=screen.textinput("提示","你要爱心")
zhengshu=int(len)
pen1.forward(2*zhengshu)
pen1.circle(zhengshu,180)
pen1.right(90)
pen1.circle(zhengshu,180)
pen1.forward(2*zhengshu)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
nm="Mrrk"
np="3.1415926"
while True:
nnmm=input("请输入用户名****")
pppl=input("请输入密码*&^^&*^*^&")
if nnmm==nm and pppl==np:
print("*%&%$&$#^&*%$^*")
break
if nnmm!=nm:
print("输入密码****")
continue
if pppl!=np:
print("输入用户名****&*")
print("嘿老弟你个******")
\ 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("欢迎来到玛酷机器人")
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