class Yasuo:
def __init__(self):
self.hp = 490
self.magic = 0
self.attack = 60
self.speed = 345
def skill1(self):
print("踏前斩 造成六十点伤害")
def skill2(self):
print("狂风觉息斩")
def run(self):
print("跑")
# 变量 = 类名()
```
aden - 类与对象
最新推荐文章于 2024-08-17 12:50:12 发布