Commit 03494879 by BellCodeEditor

save project

parent 9b473f85
Showing with 6 additions and 2 deletions
...@@ -6,4 +6,9 @@ class juese: ...@@ -6,4 +6,9 @@ class juese:
self.name=Name self.name=Name
yase=juese("yase",300,20) yase=juese("yase",300,20)
houyi=juese("houyi",250,23) houyi=juese("houyi",250,23)
print(houyi.hp) def upgrade():
\ No newline at end of file yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
upgrade()
upgrade()
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