Commit 8dbab3ed by BellCodeEditor

auto save

parent c6c73da7
Showing with 4 additions and 3 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
class Hero(object): class Hero(object):
def __init__(self, name): def __init__(self, name):
self.level = 1 self.level = 1
self.hp = 250 self.hp = 40
self.att = 40 self.att = 40
self.name = name self.name = name
...@@ -19,6 +19,6 @@ class Hero(object): ...@@ -19,6 +19,6 @@ class Hero(object):
info=info1+info2+info3 info=info1+info2+info3
print(info) print(info)
exit() exit()
yase = Hero("杰哥") yase = Hero("阿伟")
houyi= Hero("阿伟") houyi= Hero("杰哥")
yase.combat(houyi) yase.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