Commit 6d1862d6 by BellCodeEditor

save project

parent fe7ca2ef
Showing with 4 additions and 7 deletions
...@@ -6,9 +6,6 @@ class Hero(): ...@@ -6,9 +6,6 @@ class Hero():
self.name=name self.name=name
yase=Hero('亚瑟',300,30) yase=Hero('亚瑟',300,30)
houyi=Hero('后羿',250,23) houyi=Hero('后羿',250,23)
print(yase.hp) yase.level=yase.level+1
print(yase.level) yase.hp=yase.hp+50
print(yase.attack) yase.attack
print(houyi.hp) \ No newline at end of file
print(houyi.level)
print(houyi.attack)
\ 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