Commit 846c41ce by BellCodeEditor

save project

parent eda9d18f
Showing with 9 additions and 0 deletions
...@@ -6,4 +6,12 @@ class a: ...@@ -6,4 +6,12 @@ class a:
self.name=name self.name=name
yase=a("yase",300,2) yase=a("yase",300,2)
houyi=a("houyi",400,6) houyi=a("houyi",400,6)
print(yase.hp)
def e():
yase.level=yase.level+1
yase.hp=yase.hp+1000
yase.attack=yase.attack+300
e()
e()
print(yase.hp) 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