Commit ea691e3c by BellCodeEditor

save project

parent ef32e263
Showing with 9 additions and 11 deletions
class Hero: class hero:
def __init__(self,name,hp,attack): def__init__(self):
self.level=1 self.level=10000000
self.name=name self.hp=1234567890
self.hp=hp self.df=99999999999999999999999999
self.attack=attack self.attack=123456789012345678901246890
hero01=Hero('亚瑟',200,30) ikun=Hero()
hero01.hp=350 print(ikun.hp)
print('英雄的名字为: '+hero01.name) \ No newline at end of file
print('英雄的血量为: '+str(hero01.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