Commit 2b4a3e14 by BellCodeEditor

save project

parent f0a1224c
Showing with 27 additions and 16 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(-100,-280) pen.goto(-100,-280)
pen.write("我5:20睡觉,\n13:14准时起,\n主打个浪漫沉溺,\n爱你的本质里,\n",font=("Times",30,"normal")) pen.write("我5:20睡觉,\n13:14准时起,\n主打个浪漫沉溺,\n爱你的本质里,\n",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()·
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
pen1.pensize(42.5) pen1.pensize(30)
pen1.left(45) pen1.left(45)
pen1.forward(100) len=screen.textinput("提示","建议52因为52*10=520")
pen1.circle(50,180) zhengshu=int(len)
pen1.forward(2*zhengshu)
pen1.circle(zhengshu,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(zhengshu,180)
pen1.forward(100) pen1.forward(2*zhengshu)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
import turtle username="ltg"
pen=turtle.Pen() userpassword="20131203"
pen.write("妈妈我爱您、妈妈辛苦了",font=("Times,"20,"normal)) while True:
pen.hideturtle() neme=input("请输入用户名")
turtle.done() password=input('请输入密码')
if name==username and password==userpassword:
print("登录成功")
break
if name!=username:
print("请重新输入用户名")
continue
if password!=userpassword:
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