Commit a72177db by BellCodeEditor

save project

parent c8642c01
Showing with 7 additions and 7 deletions
...@@ -6,9 +6,9 @@ class Hero: ...@@ -6,9 +6,9 @@ class Hero:
self.attack=attack self.attack=attack
yase=Hero('哑色',300,20) yase=Hero('哑色',300,20)
houyi=Hero('后羿',250,23) houyi=Hero('后羿',250,23)
print(yase.name) print("姓名:",yase.name)
print(yase.hp) print('血量',yase.hp)
print(yase.attack) print('攻击力:',yase.attack)
print(houyi.name) print("姓名:",houyi.name)
print(houyi.hp) print('血量',houyi.hp)
print(houyi.attack) print('攻击力:',houyi.attack)
\ No newline at end of file \ 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