diff --git a/diy1.py b/diy1.py index 47c50b4..8ea923e 100644 --- a/diy1.py +++ b/diy1.py @@ -1,22 +1,5 @@ -# 利用write()帮助悟空给诺依回信吧~ -import turtle - -pen=turtle.Pen() -pen.penup() -pen.goto(100,-100) -pen=turtle.Pen() -pen.write("你好呀!",font=("Times",20,"normal")) -pen.heading() -pen1=turtle.Pen() -pen1.pencolor("blue") -pen1.pensize(5) -len=screen.textinput("d","?") -pen1.left(45) -pen1.forward(100) -pen1.circle(50,180) -pen1.right(90) -pen1.circle(50,180) -pen1.forward(100) -pen1.hideturtle() -turtle.done() - +username = "python" +userpassword = "123456" +name = input("请输入用户名:") +password = input("请输入密码:") +if name==username and password==userpassword: \ No newline at end of file diff --git a/diy2.py b/diy2.py index 0f9dbcd..e69de29 100644 --- a/diy2.py +++ b/diy2.py @@ -1,24 +0,0 @@ -#导入摸快 -import turtle -screen=turtle.Screen() -screen.bgcolor("light blue") -pen=turtle.Pen() -#写 -pen.penup() -pen.goto(100,-100) -pen.write("你好SCP-049",font=("Times",30,"normal")) -pen.hideturtle() -#画爱心 -pen1=turtle.Pen() -len=screen.textinput("提示","你想要多大的爱心呀") -lovesize=int(len) -pen1.pencolor("red") -pen1.pensize(5) -pen1.left(45) -pen1.forward(2*lovesize) -pen1.circle(lovesize,180) -pen1.right(90) -pen1.circle(lovesize,180) -pen1.forward(2*lovesize) -pen1.hideturtle() -turtle.done() \ No newline at end of file diff --git a/quiz1.py b/quiz1.py index fb9e49c..e69de29 100644 --- a/quiz1.py +++ b/quiz1.py @@ -1,22 +0,0 @@ -#导入摸快 -import turtle - -#创建话笔 -pen=turtle.Pen() -#写 -pen.penup() -pen.goto(100,-100) -pen.write("你好SCP-096",font=("Times",30,"normal")) -pen.hideturtle() -#画爱心 -pen1=turtle.Pen() -pen1.pencolor("red") -pen1.pensize(5) -pen1.left(45) -pen1.forward(100) -pen1.circle(50,180) -pen1.right(90) -pen1.circle(50,180) -pen1.forward(100) -pen1.hideturtle() -turtle.done() \ No newline at end of file