Commit e9e27145 by BellCodeEditor

save project

parent 1662c616
Showing with 4 additions and 4 deletions
......@@ -3,8 +3,8 @@ class Hero():
self.level=1
self.hp = hp
self.name = name
slef.attack =attack
self.attack =attack
yase=Hero("亚瑟",300,20)
houyi = Hero("后",240,23)
print("name"+':'+str(yase,name))
print("name"+':'+str(houyi,name))
houyi = Hero("后羿",240,23)
print("name"+':'+str(yase.name))
print("name"+':'+str(houyi.name))
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