Commit 90755c29 by BellCodeEditor

save project

parent 4b719adc
Showing with 10 additions and 2 deletions
class H class Hero:
\ No newline at end of file def __init__(self,hp,attack):
self.level = 1
self.hp=hp
self.attack=attack
yase = Hero(2,300)
print("yase的血量值为:",yase.hp)
print("yase的攻击力为:",yase.attack)
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