Commit a752cc8b by BellCodeEditor

save project

parent c6dc30c4
Showing with 13 additions and 3 deletions
......@@ -4,11 +4,21 @@ class a:
self.attack=attack
self.level=1
self.name=name
def b:
yase.hp=hp+50
yase.attack=attack+4
yase.level=level+1
#huoyi.hp=hp
#huoyi.attack=attack
#huoyi.level=1
#huoyi.name=name
yase=a("垭瑟",300,20)
huoyi=a("后羿",240,23)
print("垭瑟的血量为:"yase.hp)
print("后羿的血量为"huoyi.hp)
\ No newline at end of file
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