Commit bbfd1602 by BellCodeEditor

save project

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