Commit 8dbab3ed by BellCodeEditor

auto save

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