Commit bcf7c414 by BellCodeEditor

save project

parent a8ffa92c
Showing with 7 additions and 5 deletions
class Hero:
def __init__(self,name,hp,attack,1a,2a,)
self.name = 三木
def __init__(self,name,hp,attack):
self.hp = 100
self.attack = 100
self.1a = 身高压制
self.2a = 嘲讽
sanmu = Hero()
a = Hero("三木",100,100)
b = Hero("漆世强",30,200)
print("三木的血量为:",a.hp)
print("漆世强的血量为:",b.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