Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_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
4a2f1e57
authored
Mar 19, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
87f9bf72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
diy.py
diy.py
View file @
4a2f1e57
class
"钟离":
class
"角色":
def__int__
(
s
,
"血量"
,
"攻击"
,
"防御"
,
"暴击率"
,
"暴击伤害"
):
def__int__
(
self
,
"等级"
,
"名字"
,
"血量"
,
"攻击"
,
"防御"
,
"暴击率"
,
"暴击伤害"
):
s
.
"血量"
=
54000
self
.
"等级"
=
"等级"
s
.
"攻击"
=
1000
self
.
"血量"
=
"血量"
s
.
"防御"
=
900
self
,
.
"攻击"
=
"攻击"
s
.
"暴击率"
=
30
self
,
.
"防御"
=
"防御"
s
.
"暴击伤害"
=
100
self
,
.
"暴击率"
=
"暴击率"
"甘雨"
=
s
(,,,,)
self
,
.
"暴击伤害"
=
"暴击伤害"
"甘雨"
=
s
(
1
,
ganyu
,
15000
,
2500
,
800
,
30
,
200
)
print
(
"暴击伤害为:"
,
"甘雨"
,
"暴击伤害"
)
# def q():
# self,."血量"=
# self."攻击"+50
# self."防御"+100
# self."暴击率"+0
# self."暴击伤害"+10
...
...
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