Commit b4383165 by BellCodeEditor

save project

parent 67ee5d18
Showing with 10 additions and 4 deletions
class hero:
def __init__(self):
class Hero:
def __init__(self,name,dps,hp):
self.level=1
self.hp=300
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self.name=name
self.dps=dps
self.hp=hp
ys=Hero('ys',1,1)
hy=Hero('hy',2,2)
print('ys血量:',ys.hp)
print('hy血量:',hy.hp)
\ No newline at end of file
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