Commit bd7dfd86 by BellCodeEditor

save project

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