Commit 59357385 by BellCodeEditor

save project

parent bd7dfd86
Showing with 9 additions and 2 deletions
...@@ -4,7 +4,14 @@ class hero: ...@@ -4,7 +4,14 @@ class hero:
self.hp= 300 self.hp= 300
self.attack= 20 self.attack= 20
def upgrada():
yase.
houyi = hero("后",240,23) houyi = hero("后",240,23)
yase = hero(“亚”,300,20) yase = hero(“亚”,300,20)
print("亚血:",yase.hp) print("亚血:",yase.hp)
print("后攻:",houyi.hp) upgrada()
\ No newline at end of file upgrada()
print("2",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