Commit 2721ef09 by BellCodeEditor

save project

parent 38b30b75
Showing with 15 additions and 12 deletions
......@@ -4,21 +4,23 @@ class a:
self.attack=attack
self.level=1
self.name=name
def b:
self.yase.hp=hp+50
selfyase.attack=attack+4
yase.level=level+1
#huoyi.hp=hp
def b:
self.yase.self.hp=hp+50
self.yase.self.attack=attack+4
self.yase.self.level=level+1
huoyi=a("后羿",240,23)
huoyi.upgraed()
print("等级为:",huoyi.level)
print("等级为:",huoyi.hp)
print("等级为:",huoyi.attack) #huoyi.hp=hp
#huoyi.attack=attack
#huoyi.level=1
#huoyi.name=name
yase=a("垭瑟",300,20)
huoyi=a("后羿",240,23)
print("垭瑟的血量为:",yase.hp)
print("垭瑟的初始血量为:",yase.hp)
upgraed()
upgraed()
print("升级2次后垭瑟的血量为:",yase.hp)
#print("垭瑟的血量为:",yase.hp)
#print("垭瑟的初始血量为:",yase.hp)
#upgraed()
#upgraed()
#print("升级2次后垭瑟的血量为:",yase.hp)
#print("后羿的血量为"huoyi.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