Commit ea5114ea by BellCodeEditor

save project

parent 02a59453
Showing with 23 additions and 1 deletions
...@@ -2,4 +2,4 @@ class hero: ...@@ -2,4 +2,4 @@ class hero:
def __init__(self): def __init__(self):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 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