From bb118369be03de4aa226cb115ed5de1feffe520e Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 30 Apr 2023 14:43:05 +0800 Subject: [PATCH] auto save --- 1.py | 24 ++++++++++++++++++++++++ 2.py | 9 +++++++++ 4.3.py | 9 +++++++++ 3 files changed, 42 insertions(+) create mode 100644 1.py create mode 100644 2.py create mode 100644 4.3.py diff --git a/1.py b/1.py new file mode 100644 index 0000000..5de482c --- /dev/null +++ b/1.py @@ -0,0 +1,24 @@ +import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") +len=screen.textinput("100","100") +len=int(len) +pen=turtle.Pen() +turtle.color("red") +turtle.begin_fill() +turtle.left(45) +turtle.forward(2*len) +turtle.circle(len,180) +turtle.right(90) +turtle.circle(len,180) +turtle.forward(2*len) +turtle.end_fill() +turtle.bgcolor("black") +turtle.penup() +turtle.goto(100,-100) +turtle.write("你好!",font=("黑体",40,"bold")) +turtle.hideturtle() +turtle.down + + + diff --git a/2.py b/2.py new file mode 100644 index 0000000..decc404 --- /dev/null +++ b/2.py @@ -0,0 +1,9 @@ +while True: + user="n" + ps="222333" + b=input("输入用户名:") + c=input("输入密码:") + if user==b and ps==c: + print("登录成功") + break +print("欢迎来到魔兽世界") \ No newline at end of file diff --git a/4.3.py b/4.3.py new file mode 100644 index 0000000..87dfd8c --- /dev/null +++ b/4.3.py @@ -0,0 +1,9 @@ +username="python" +userpassword="123456" +while True: + a=input("username:") + b=input("userpassword") + if username==a and userpassword==b: + print("登录成功") + break +print("欢迎进入系统!") \ No newline at end of file -- libgit2 0.25.0