Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
01c9ccd7
authored
Aug 25, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
52a31152
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
1.py
1.py
View file @
01c9ccd7
i
=
3
a
=
"1"
b
=
"2"
while
True
:
if
i
>
0
:
c
=
input
(
"账号:"
)
d
=
input
(
"密码:"
)
i
-=
1
if
a
==
c
and
b
==
d
:
print
(
"输入正确"
)
break
if
a
!=
c
:
print
(
"没有这个账号"
)
print
(
"你还有"
,
str
(
i
),
"机会"
)
continue
if
b
!=
d
:
print
(
"密码错误"
)
print
(
"你还有"
,
str
(
i
),
"机会"
)
continue
else
:
print
(
"次数为零"
)
exit
()
print
(
"欢迎来到对抗路"
)
\ No newline at end of file
date
=
input
(
"今天星期几:"
)
if
date
==
"星期三"
:
print
(
"今天学编程"
)
elif
date
==
"星期一"
:
print
(
"今天学国画"
)
elif
date
==
"星期五"
:
print
(
"今天学书写"
)
else
:
print
(
"今天学国学"
)
\ No newline at end of file
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