def eat():
print(1)
print(2)
eat() #调用函数
class Person:
def eat2(self):
print(1)
print(2)
p=person()
p.eat2()
#使用方法
def eat():
print(1)
print(2)
eat() #调用函数
class Person:
def eat2(self):
print(1)
print(2)
p=person()
p.eat2()
#使用方法