Commit e8a9ed9e by BellCodeEditor

auto save

parent ea056bbd
Showing with 0 additions and 25 deletions
class hero:
def __init__(self):
self.level=1
self.hp=300
self.attack=2000
class hero:
def __init__(self,name,hp,attack):
self.mingzi=name
self.xueliang=hp
self.gongjizhi=attack
yase=hero("亚瑟",250,360)
yase.mingzi="亚瑟"
yase.xueliang=600
yase.gongjizhi=700
hoyi=hero("玉皇大帝",999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999)
print("血量是"+str(yase.mingzi))
print("名字是"+str(yase.xueliang))
print("攻击值是"+str(yase.gongjizhi))
\ No newline at end of file
class take:
def __init__(self,chicun,fruit,naiyuo):
self.
self.
self.
cake1=
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