Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_DIY1
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
3b45dace
authored
Nov 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
e6b0595c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
8 deletions
diy.4
diy.4.py
diy1.py
diy2.py
diy.4
View file @
3b45dace
usename =
\ No newline at end of file
diy.4.py
0 → 100644
View file @
3b45dace
usename
=
"python"
password
=
"123456"
while
True
:
us
=
input
(
"请输入您的用户名:"
)
if
us
!=
usename
:
print
(
"用户名不正确,请重新输入!"
)
continue
ps
=
input
(
"请输入您的密码:"
)
if
ps
!=
password
:
print
(
"密码不正确,请重新输入!"
)
continue
if
(
us
==
usename
)
and
(
ps
==
password
):
print
(
"用户名,密码正确"
)
\ No newline at end of file
diy1.py
View file @
3b45dace
n
=
"python"
w
=
"123456"
while
True
:
jian
while
True
:
zhang
=
input
(
"账号:"
)
mi
=
input
(
"密码:"
)
if
(
n
==
zhang
)
or
(
w
==
mi
):
if
(
n
==
zhang
)
and
(
w
==
mi
):
print
(
"登录成功"
)
break
else
:
print
(
"bug"
)
while
True
:
zhang
=
input
(
"账号:"
)
mi
=
input
(
"密码:"
)
continue
diy2.py
View file @
3b45dace
import
randon
list
=
[
"石头"
,
"剪刀"
,
"布"
]
computer
=
randown
.
choice
(
list
)
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