Commit 2723b1f3 by BellCodeEditor

save project

parent ef39df1c
Showing with 22 additions and 3 deletions
class hero:
def __init__(self):
self.level=1
self.hp=300
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
self.level=100000
self.hp=50000000000
self.attack=20000000
wuchang=hero()
print("wuchang血量值为:",wuchang.hp)
print("wuchang攻击力为:",wuchang.attack)
print("wuchang等级为:",wuchang.level)
class hero:
def __init__(self,name,hp,attack):
self.level=100000
self.name=name
self.hp=hp
self.attack=attack
wuchang=hero("五常",500000000000000000000000000000000000000000000000000,1000000000000000000000000000000000000000000000000000)
yoguanwuchang=hero("油管五常",700000,70000000)
print("五常血量值为:",wuchang.hp)
print("油管五常血量值为:",yoguanwuchang.hp)
def upgrade():
wuchang.level=wuchang.level+100000000000
wuchang.hp=wuchang.hp+50000000000
wuchang.attack= wuchang.attack+9999999999999999999999999
\ 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