Commit 141c57a1 by BellCodeEditor

auto save

parent df7c584a
print("悟空"*10)
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
# 初始
import turtle
pen = turtle.Pen()
pen.write("你好呀,\n 诺伊!",font=("Times",30,"normal"))
pen.hideturtle()
screen = turtle.Screen()
screen.bgcolor("pink")
# 文字
pen.penup()
pen.goto(0,-100)
pen.write("Hello,\n World!\n ------to world\n ------by Python ",font=("Times",30,"normal"))
# 一心
pen.penup()
pen.goto(-150,0)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
# 二心
pen.penup()
pen.goto(0,100)
pen.pendown()
pen.left(45)
pen.pensize(3)
pen.pencolor("red")
pen.left(45)
pen.forward(50)
pen.circle(25,180)
pen.right(90)
pen.circle(25,180)
pen.forward(50)
pen.hideturtle()
# 保留画布
turtle.done()
\ No newline at end of file
turename = "abc"
turepassword = "123"
a = 0
print("欢迎来到DarkKingdom")
ask = input("是否有账号?(是/否):")
if ask == "是":
while a<3:
print("剩余次数"+str(3-a))
name = input("请输入您的账号:")
password = input("请输入您的密码:")
if name == turename:
if password == turepassword:
print("登录成功")
print("欢迎回来",turename)
break
else:
print("登录失败")
else:
print("登录失败")
a = a + 1
else:
print("没有?滚蛋!")
\ No newline at end of file
turename = "abc"
turepassword = "123"
a = 1
while a<4:
print("剩余次数"+str(4-a))
name = input("请输入您的账号:")
password = input("请输入您的密码:")
if name == turename:
if password == turepassword:
print("登录成功")
break
else:
print("登录失败")
else:
print("登录失败")
a = a + 1
++ "b/\344\272\272\347\232\204\343\200\202py"
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