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
5f49ebd7
authored
Mar 26, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
4d59485f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
diy1.py
diy1.py
View file @
5f49ebd7
...
@@ -45,17 +45,41 @@ while True:
...
@@ -45,17 +45,41 @@ while True:
print
(
"-"
*
45
)
print
(
"-"
*
45
)
choin
=
input
(
"请选择英雄释放技能(攻击:1 治疗:2)"
)
choin
=
input
(
"请选择英雄释放技能(攻击:1 治疗:2)"
)
if
choin
==
"q"
:
if
choin
==
"q"
:
print
(
"
退出游戏
"
)
print
(
"
游戏结束
"
)
break
break
elif
choin
==
"1"
:
elif
choin
==
"1"
:
houyi
.
combat
(
yase
)
houyi
.
combat
(
yase
)
elif
choin
==
"2"
:
elif
choin
==
"2"
:
houyi
.
cure
()
houyi
.
cure
()
else
:
else
:
print
(
"请重新输入1或2"
)
print
(
"请重新输入1或2
.
"
)
continue
continue
nom
=
random
.
randint
(
1
,
3
)
nom
=
random
.
randint
(
1
,
3
)
if
nom
==
1
:
if
nom
==
1
:
yase
.
combat
(
houyi
)
yase
.
combat
(
houyi
)
else
:
else
:
yase
.
cure
()
yase
,
cure
()
\ No newline at end of file
\ 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