Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_4
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
e16c1c14
authored
Jul 07, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
9bebd03f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
diy2.py
diy2.py
View file @
e16c1c14
Haros
=
{
'垭瑟'
:
330
200
20
,
'后裔'
:
300
130
27
,
'李百'
:
250
140
26
,
'太乙真仁'
:
340
160
26
}
Haros
=
{
'垭瑟'
:
'330 200 20'
,
'后裔'
:
'300 130 27'
,
'李百'
:
'250 140 26'
,
'太乙真仁'
:
'340 160 26'
}
VIPSHaros
=
{
'垭瑟'
:
660
400
50
,
'后裔'
:
600
260
27
,
'李百'
:
500
280
52
}
VIPSHaros
=
{
'垭瑟'
:
'660 400 50'
,
'后裔'
:
'600 260 27'
,
'李百'
:
'500 280 52'
,
'太乙真仁'
:
'680 260 52'
}
VIP
=
23413
VIP
=
23413
class
Haro
:
class
Haro
:
def
__init__
(
self
,
name
,
hp
,
attack
,
fy
):
def
__init__
(
self
,
name
,
hp
,
attack
,
fy
):
...
@@ -11,16 +11,23 @@ class Haro:
...
@@ -11,16 +11,23 @@ class Haro:
self
.
names
.
hp
+=
50
self
.
names
.
hp
+=
50
self
.
names
.
attack
+=
2
self
.
names
.
attack
+=
2
self
.
names
.
fy
+=
10
self
.
names
.
fy
+=
10
def
pk
():
input
(
'按1治疗,按2攻击'
)
print
(
'-'
*
30
)
def
start
(
a
):
print
(
a
)
playerharo
=
input
(
'输入玩家的英雄'
)
if
playerharo
in
a
:
Haro
print
(
'游戏开始!'
)
print
(
'-'
*
30
)
while
True
:
while
True
:
mm
=
input
(
'A.VIP玩家 B.普通玩家'
)
mm
=
input
(
'
你是
A.VIP玩家 B.普通玩家'
)
if
mm
=
A
:
if
mm
=
=
'A'
:
mm
=
input
(
'请输入密码'
)
mm
=
input
(
'请输入密码'
)
if
mm
==
VIP
:
start
(
VIPSHaros
)
start
(
VIPSHaros
)
elif
mm
=
b
:
elif
mm
==
'B'
:
mm
=
input
(
'请输入密码'
)
start
(
Haros
)
start
(
Haros
)
else
:
else
:
print
(
'输入错误!'
)
print
(
'输入错误!'
)
\ No newline at end of file
def
start
(
a
):
print
(
a
)
playerharo
=
input
(
'输入玩家1的英雄'
)
\ 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