Commit 04abd33e by BellCodeEditor

save project

parent ef39df1c
Showing with 9 additions and 4 deletions
class hero:
def __init__(self):
class Hero:
def __init__(self,e,t,i):
self.level=1
self.hp=300
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self.hp=e
self.attack=t
self.mz=i
yase=Hero(300,20,'亚瑟')
hy=Hero(210,40,"后羿")
print('亚瑟的血量:',yase.hp)
print('后羿的血量:',hy.hp)
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