Commit 62ed04ba by BellCodeEditor

save project

parent 732409bd
Showing with 8 additions and 25 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen1=turtle.Pen()
len=screen.textinput("提示窗","你想要多大的心?")
len=int(len)
name=screen.textinput("提示窗","输入名字:")
pen.penup()
pen.goto(100,-100)
pen.write(name+"你好啊",font=("Tiome",30,"normal"))
pen.hideturtle()
pen1.pencolor("red")
pen1.pensize(4)
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
turtle.done()
\ No newline at end of file
uname="python"
um="11111111"
name =input("请输入账号")
m=input("请输入密码")
if uname == name and um==m:
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