Commit 6afe83d8 by BellCodeEditor

save project

parent f1fad6cf
Showing with 7 additions and 1 deletions
......@@ -6,5 +6,10 @@ class H():
self.attack=attack
yase=H("亚瑟",300,40)
houyi=H("后羿",240,45)
print(yase.hp)
print(houyi.hp)
def funcname():
houyi.level=houyi.level+1
houyi.hp=houyi.hp+50
houyi.attack=houyi.attack+5
funcname()
print(houyi.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