Commit 756da92a by BellCodeEditor

save project

parent 6c89ed46
Showing with 6 additions and 6 deletions
# 英雄角色类
class Hero(object):
def __init__(self, name):
self.level = 1000
self.hp = 99999
self.attack = 999
self.level = 9999999999999999999999
self.hp = 999998888777665
self.attack = 999888777666555
self.name = name
def combat(self,enemy): # 攻击
......@@ -17,6 +17,6 @@ class Hero(object):
print(info1 + info2 + info3)
yase = Hero("垭瑟")
lubu = Hero("吕布")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
lubu.combat(houyi)
\ 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