Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson15_1
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
a5ac6698
authored
Nov 14, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
9a581ef4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
diy1.py
diy1.py
View file @
a5ac6698
...
...
@@ -7,6 +7,18 @@ class Hero(object):
self
.
name
=
name
def
combat
():
# 攻击
#被攻击者减血量
#信息1:‘攻击者’ 对 ‘被攻击者’ 发起攻击,
#信息2:‘被攻击者’ 减少 ‘血量’
#信息3:‘被攻击者’ 还剩 ‘多少’ 血量
#判断被攻击者血量是否大于0
#是
#输出信息:信息1 + 信息2 + 信息3
#否
#输出信息:信息1 + 被攻击者已阵亡,血量为0
#结束 exit()
???
yase
=
Hero
(
"垭瑟"
)
...
...
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