python3之属性方法相关
一、
1 def eat1(): 2 print(1) 3 print(2) 4 print(3) 5 eat1() 6 7 class person: 8 def eat2(self): 9 print(4) 10 print(5) 11 print(6) 12 p = person() 13 p.eat2() 14 15 16 G:\超哥\python3编程\python3基础\venv\Scripts\python.exe G:/超哥/python3编程/python3基础/python文件操作/python属性相关.py 17 1 18 2 19 3 20 4 21 5 22 6