Commit e622d1ca by BellCodeEditor

save project

parent c53aa828
Showing with 2 additions and 1 deletions
...@@ -4,6 +4,6 @@ class Hero: ...@@ -4,6 +4,6 @@ class Hero:
self.hp=300 self.hp=300
self.attack=20 self.attack=20
yase = hero() yase = Hero()
print('亚瑟的血量是',yase.hp) print('亚瑟的血量是',yase.hp)
print('亚瑟的攻击力是',yase.attack) print('亚瑟的攻击力是',yase.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