正文

探索列王时代:揭秘古风手游中的传奇英雄与战略技巧


#### 3. 灵巧的弓箭手
弓箭手以高爆发的伤害和灵活的身姿著称。在战斗中,他们总能找到敌人的破绽,给予致命一击。

```html
<div class="code-example">
<pre><code>class Archer:
    def __init__(self, name, health, attack):
        self.name = name
        self.health = health
        self.attack = attack

    def shoot(self, enemy):
        enemy.health -= self.attack
        print(f"{self.name} 对 {enemy.name} 射箭,剩余生命值:{enemy.health}")