Commit 435a1ce8 by BellCodeEditor

auto save

parent 3978b36b
Showing with 109 additions and 0 deletions
class Hero:
def__init__(self,name,hp,ac):
self.lv = 1
self.name = name
self.hp = 300
self.ac = 20
yase = Hero("亚瑟",300,25)
houyi = Hero("后羿",100,200)
print("亚瑟的血量:",yase.hp)
print("后羿的血量:",houyi.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