Commit a72177db by BellCodeEditor

save project

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