Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_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
fa7f2a1c
authored
Jan 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
054084cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
diy1.py
diy1.py
View file @
fa7f2a1c
...
@@ -53,12 +53,17 @@ while True:
...
@@ -53,12 +53,17 @@ while True:
b
=
random
.
randint
(
1
,
2
)
b
=
random
.
randint
(
1
,
2
)
if
a
==
"q"
:
if
a
==
"q"
:
break
break
if
a
==
1
:
else
:
houyi
.
combat
(
yase
)
if
a
==
"1"
or
a
==
"2"
:
if
a
==
2
:
if
a
==
"1"
:
houyi
.
cure
()
houyi
.
combat
(
yase
)
if
a
==
"2"
:
houyi
.
cure
()
else
:
print
(
"-"
*
50
)
print
(
"输入错误,请重新输入!"
)
continue
if
b
==
1
:
if
b
==
1
:
yase
.
combat
(
houyi
)
yase
.
combat
(
houyi
)
if
b
==
2
:
if
b
==
2
:
yase
.
cure
()
yase
.
cure
()
print
(
"-"
*
50
)
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