Commit 5ff041d2 by BellCodeEditor

save project

parent 70850cf8
Showing with 9 additions and 0 deletions
class hero:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
lubanqihao=hero("鲁班七号",0.00000000000000000000001,1)
anqila= hero("安琪拉",1,1)
print("鲁班七号的血量:"+str(lubanqihao.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