Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9ee77e85
authored
Jan 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2e55d368
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
12345.py
2345678765432.py
3.py
12345.py
0 → 100644
View file @
9ee77e85
x
=
input
(
"输入第一个加数"
)
y
=
input
(
"输入第二个加数"
)
z
=
int
(
x
)
+
int
(
y
)
print
(
x
+
"+"
+
y
+
"="
+
str
(
z
))
\ No newline at end of file
2345678765432.py
View file @
9ee77e85
i
=
3
i
=
4
username
=
"
python
"
username
=
"
性感的马云
"
userpassword
=
"
123456
"
userpassword
=
"
alibaba
"
while
True
:
while
True
:
if
i
<=
3
:
if
i
<=
4
:
name
=
input
(
"请输入用户名:"
)
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
password
=
input
(
"请输入密码:"
)
i
-=
1
if
name
==
username
and
password
==
userpassword
:
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功!"
)
print
(
"登录成功!"
)
break
break
if
not
name
==
username
:
if
not
name
==
username
:
print
(
"用户名错误!"
)
print
(
"用户名错误!"
)
if
not
password
==
userpassword
:
if
not
password
==
userpassword
:
print
(
"密码错误!"
)
print
(
"密码错误!
\n
输入错误第"
+
str
(
5
-
i
)
+
"次,
\n
剩余"
+
str
(
i
)
+
"次"
)
i
-=
1
if
i
==
0
:
if
i
==
0
:
print
(
"此机器将于3秒后爆炸,您的账号将要被封锁100年!"
)
print
(
"此机器将于3秒后
吸引原子弹
爆炸,您的账号将要被封锁100年!"
)
exit
()
exit
()
# if name == username and password == userpassword:
# if name == username and password == userpassword:
...
...
3.py
0 → 100644
View file @
9ee77e85
import
turtle
pen
=
turtle
.
Pen
()
diftance
=
10
for
i
in
range
(
300
):
pen
.
forward
(
diftance
)
pen
.
right
(
91
)
diftance
+=
1
screen
.
hideturtle
()
turtle
.
done
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment