Commit 2413e183 by BellCodeEditor

save project

parent d384a57c
Showing with 7 additions and 16 deletions
class hero:
def __init__(self):
self.level=1
self.hp=300
self.attack=2
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.write("吴综环是个sb",font=("times",30,"normal"))
pen.hideturtle()
turtle.done()
\ No newline at end of file
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=30
self.attack=20
yase=Hero('亚瑟',10,400)
houyi=Hero('后裔',65,250)
print(yase.name)
print(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