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
2e89736c
authored
Feb 21, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b2671659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
diy.py
diy.py
View file @
2e89736c
class
a
:
class
a
:
def
__init__
(
self
):
def
__init__
(
self
,
name
,
HP
,
等级
,
防御
,
敏捷
):
self
.
name
=
"史蒂夫"
self
.
name
=
name
self
.
血量
=
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self
.
等级
=
等级
self
.
等级
=
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self
.
防御
=
防御
self
.
防御
=
325634456465396756734956795367958463956723479563956329563956325636759432700000000000000000000000000000000000000000000000
self
.
HP
=
HP
self
.
HP
=
99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999990
self
.
敏捷
=
敏捷
self
.
敏捷
=
239436487489346739657385634791356437895636865635636758375638564857345385385679563465938265000000000000000000000000000000
yase
=
a
(
"亚瑟"
,
500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
,
100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
,
200000000000000000000000000000000000000000000000000000000000000000000000000
,
2000000000000000000000000000000000000000000000000000000000000000000000000000000
)
yase
=
a
()
sb
=
a
(
"sb"
,
100000000000000000000000000000000000000000
,
10000000000000000000000000000000000000000000
,
2000000000000000000000000000000000000000000000000000000
,
100000000000000000000000000000000000
)
print
(
yase
.
HP
)
\ No newline at end of file
print
(
yase
.
敏捷
)
print
(
sb
.
防御
)
def
upgrade
():
yase
.
name
=
yase
.
name
+
1
yase
.
HP
=
yase
.
HP
+
100000000000000
yase
.
等级
=
yase
.
等级
+
100000000000
yase
.
防御
=
yase
.
防御
+
100000000000
yase
.
敏捷
=
yase
.
敏捷
+
100000000000
upgrade
()
upgrade
()
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