Commit 482aee46 by BellCodeEditor

auto save

parent e77aebf7
Showing with 24 additions and 1 deletions
class Hero:
def __init__(self):
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment