Commit ce05e076 by BellCodeEditor

save project

parent 5e9f320d
Showing with 6 additions and 7 deletions
......@@ -4,14 +4,13 @@ class Hero():
self.name=name
self.HP=HP
self.a=a
def sbup():
self.Lv=self.Lv+1
self.HP=self.HP+0
self.a=self.a+0
sb=Hero('sans',1,1)
def sd_up()
sb.Lv=sb.Lv+1
sb.HP=sb.HP+0
sb.a=sb.a=0
print("初始Lv为",sb.Lv)
sb_up()
sb_up()
sb_up()
sb.sbup
print("升级后Lv为",sb.Lv)
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