Commit bbfd1602 by BellCodeEditor

save project

parent 4abbced1
Showing with 7 additions and 7 deletions
class dog:
def __init__(self):
self.level=4
self.hp=6
self.attack=20
yase=dog()
print(yase.hp)
\ No newline at end of file
def __init__(self,eye,foot,skin):
self.yanjing=eye
self.jiao=foot
self.pifu=skin
huahua=dog(2,4,"yellow")
print(huahua.jiao)
\ 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