diff --git a/diy1.py b/diy1.py index a9418d3..fc88757 100644 --- a/diy1.py +++ b/diy1.py @@ -1,21 +1,6 @@ -import turtle -pen=turtle.Pen() -pen.goto(100,-100) -pen.write("你好呀,诺依",font=("Times",20,"normal")) -pen.hideturtle() - -pen.penup() -screen=turtle.Screen() -screen.bgcolor("pink") -len=screen.textinput("提示","请输入爱心大小:") - -pen1=turtle.Pen() -pen1.left(45) -loves=int(len) -pen1.forward(loves*2) -pen1.circle(loves,180) -pen1.right(90) -pen1.circle(loves,180) -pen1.forward(loves*2) - -turtle.done() \ No newline at end of file +usename="wangyuhao" +usepassword="123456789" +name=input("请输入账号:") +password=input("请输入密码:") +if name==usename and password==usepassword: + print("登陆成功")