Commit 2d63c24e by BellCodeEditor

save project

parent e838dd3b
Showing with 8 additions and 4 deletions
...@@ -4,6 +4,10 @@ class hero: ...@@ -4,6 +4,10 @@ class hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=hero('yase',300,20) yase=hero('yase',300,20)
hy=hero('hy',250,23) def asd():
print(yase.attack) yase.level=yase.level+1
print(hy.attack) yase.hp=yase.hp+50
\ No newline at end of file yase.attack=yase.attack+4
asd()
asd()
print(yase.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