Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_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
482aee46
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e77aebf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
diy2.py
diy2.py
View file @
482aee46
class
Hero
:
def
__init__
(
self
):
\ No newline at end of file
def
__init__
(
self
,
af
,
bf
,
cf
,
df
):
self
.
level
=
1
self
.
af
=
af
self
.
bf
=
bf
self
.
cf
=
cf
self
.
df
=
df
a
=
Hero
(
'SB1'
,
1
,
100
,
150
)
b
=
Hero
(
'SB2'
,
2
,
200
,
250
)
c
=
Hero
(
'SB3'
,
3
,
300
,
350
)
d
=
Hero
(
'SB4'
,
4
,
400
,
450
)
e
=
Hero
(
'SB5'
,
5
,
500
,
550
)
print
(
'SB1的攻击'
,
a
.
bf
)
print
(
'SB1的攻击'
,
a
.
cf
)
print
(
'SB1的攻击'
,
a
.
df
)
print
(
'SB2的攻击'
,
b
.
bf
)
print
(
'SB2的攻击'
,
b
.
cf
)
print
(
'SB3的攻击'
,
c
.
bf
)
print
(
'SB3的攻击'
,
c
.
cf
)
print
(
'SB4的攻击'
,
d
.
bf
)
print
(
'SB54的攻击'
,
d
.
cf
)
print
(
'SB6的攻击'
,
e
.
bf
)
print
(
'SB6的攻击'
,
e
.
cf
)
This diff is collapsed.
Click to expand it.
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