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
b688c9c3
authored
May 27, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
52899ce6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
diy.py
diy.py
View file @
b688c9c3
...
...
@@ -8,5 +8,17 @@ cxk=hyld('蔡徐坤',250,50)
xt
=
hyld
(
'艾尔.普利莫'
,
600
,
25
)
sq
=
hyld
(
'瑟奇'
,
280
,
16
)
xl
=
hyld
(
'雪莉'
,
300
,
30
)
print
(
'普利莫的血量:'
,
600
)
print
(
'瑟奇的血量:'
,
280
)
def
xt_sj
():
xt
.
dj
=
xt
.
dj
+
1
xt
.
xl
=
xt
.
xl
+
15
xt
.
gj
=
xt
.
gj
+
2
print
(
'普利莫的初始血量为:'
,
xt
.
xl
)
print
(
'普利莫吃了一个能量块'
)
xt_sj
()
print
(
'普利莫升级了 等级:'
,
xt
.
dj
)
print
(
'普利莫吃了一个能量块'
)
xt_sj
()
print
(
'普利莫升级了 等级:'
,
xt
.
dj
)
print
(
'二级普利莫的血量:'
,
xt
.
xl
)
\ No newline at end of file
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