Commit 28417062 by BellCodeEditor

auto save

parent f19096ae
Showing with 12 additions and 0 deletions
class Cat():
def __init__(self):
self.eye = 2 # 眼睛
self.foot = 4 # 腿
self.color = "black"
def eat(self,food):
print("今天吃了"+food)
houyi = Cat()
houyi.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