Commit 7ea92773 by BellCodeEditor

save project

parent 020a37fd
Showing with 4 additions and 2 deletions
...@@ -5,4 +5,7 @@ class Heros: ...@@ -5,4 +5,7 @@ class Heros:
self.attack = attack self.attack = attack
self.name=name self.name=name
ljt=Heros("林隽韬",-10000,100) ljt=Heros("林隽韬",-10000,100)
print(ljt.name+"hp:"+ str(ljt.hp)) def updata():
\ No newline at end of file ljt.hp+=1
updata()
print(ljt.name+"hp:"+ str(ljt.hp))
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