Commit 537d10c8 by BellCodeEditor

save project

parent 3723e56f
Showing with 10 additions and 0 deletions
class Cat():
def __init__(self):
self.eye = 2
self.foot = 4
self.color = 'black'
def eat(self,food):
print('今天吃了'+food)
huamao = Cat()
huamao.eat('鱼')
\ 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