Commit ac32a17c by BellCodeEditor

save project

parent 70850cf8
Showing with 12 additions and 0 deletions
class Hero:
def _init_(self,name,hp,attack)
self.level = 15
self.name = name
self.hp = hp
self.attack = attack
yao = Hero("耀",1000000,99999999999)
ludan = Hero("卤蛋",10000,9999999999999999999)
print("耀的血量值为",yao.hp)
print("耀的血量值为",ludan.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