Commit 96347134 by BellCodeEditor

save project

parent 297b569f
Showing with 8 additions and 3 deletions
...@@ -4,6 +4,10 @@ class hero: ...@@ -4,6 +4,10 @@ class hero:
self.hp=hp self.hp=hp
self.xl=xl self.xl=xl
yase=hero("yase",300,20) yase=hero("yase",300,20)
hoyi=hero("hoyi",100,90) hoyi=hero("hoyi",100,20)
print(yase.hp) def sj():
print(hoyi.hp) yase.dj=yase.dj+1
yase.hp=yase.hp+38
yase.xl= self.xl+1
print(yase)
\ 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