Commit 0478d66e by BellCodeEditor

auto save

parent d6746133
Showing with 5 additions and 4 deletions
...@@ -4,6 +4,7 @@ class hero: ...@@ -4,6 +4,7 @@ class hero:
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero( )) yase=Hero('亚瑟',300,20)
print(yase.attack) yase=Hero('后羿',240,23)
yase=() print(亚瑟的攻 .attack)
\ No newline at end of file yase=()00
\ 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