Commit 4d684c4f by BellCodeEditor

save project

parent 11f49f33
Showing with 2 additions and 1 deletions
......@@ -2,7 +2,8 @@ class Hero:
def __init__(self,name,hp,attack):
self.name=name
self.hp=hp
self.attack=attack
self.attack
yaser = Hero("亚瑟",300,20)
print("yaser的血量是:",yaser.hp)
......
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