Commit 30b94cfa by BellCodeEditor

auto save

parent c547aa8a
Showing with 14 additions and 1 deletions
...@@ -11,7 +11,7 @@ class Hero(object): ...@@ -11,7 +11,7 @@ class Hero(object):
info1 = self.name + "对" +enemy.name +"发起攻击," info1 = self.name + "对" +enemy.name +"发起攻击,"
info2 = "造成" + str(self.attack) + "点伤害," info2 = "造成" + str(self.attack) + "点伤害,"
else: else:
info3 = enemy.name + info3 = enemy.nam +
yase = Hero("垭瑟") yase = Hero("垭瑟")
houyi= Hero("后羿") houyi= Hero("后羿")
yase.combat(houyi) yase.combat(houyi)
\ No newline at end of file
class Cat:
def _init_(self):
self.FootNum = 4
self.headNum = 1
self.EyeNum = 2
self.skin = "black"
def run(self):
while True:
print("狗狗fei")
xiaomaomi = Cat()
xiaomaomi.run()
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