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
079d0edf
authored
Oct 30, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b17c906a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
diy1.py
diy1.py
View file @
079d0edf
...
...
@@ -11,11 +11,11 @@ class Hero(object):
a2
=
'搞出来'
+
str
(
self
.
attack
)
+
'的伤害,'
enemy
.
hp
-=
self
.
attack
if
enemy
.
hp
>
0
:
a3
=
enemy
.
name
+
'还剩一点点血:'
+
str
(
enemy
.
hp
)
a3
=
enemy
.
name
+
'还剩一点点血:'
+
str
(
enemy
.
hp
)
+
'(亚哥,不要啦)'
a
=
a1
+
a2
+
a3
print
(
a
)
else
:
a3
=
enemy
.
name
+
'被黑人抬走了'
a3
=
enemy
.
name
+
'被黑人抬走了
(亚哥,我恨你)
'
a
=
a1
+
a2
+
a3
print
(
a
)
exit
()
...
...
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