Commit 1b87f19f by BellCodeEditor

auto save

parent 9a581ef4
Showing with 7 additions and 15 deletions
# 英雄角色类 import turtle
class Hero(object): turtle.pencolor('red')
def __init__(self, name): turtle.bk(100)
self.level = 1 turtle.circle(100)
self.hp = 250 turtle.circle(100,steps=3)
self.attack = 40 turtle.done()
self.name = name \ No newline at end of file
def combat(): # 攻击
???
yase = Hero("垭瑟")
houyi= Hero("后羿")
yase.combat(houyi)
\ No newline at end of file
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