Commit 249e9c74 by BellCodeEditor

auto save

parent d0ff92a8
Showing with 4 additions and 3 deletions
class SB:
class Sa:
def __init__(self,level,name,hp,attack):
self.level = level
self.name = name
......@@ -12,7 +12,7 @@ class SB:
self.hp=self.hp+50
self.attack=self.attack+4
a=SB(1,"张老师",100,250)
a=Sa(1,"张老师",100,250)
print(a.hp)
a.A()
a.a()
print(a.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