(1)代码执行顺序
python程序是顺序执行的,Python中首先执行最先出现的非函数定义和非类定义的没有缩进的代码。
————————————
python程序执行时, 按照自上而下的顺序:首先执行没有缩进的代码,但是类中的代码和函数中的代码不会执行 (除非被调用)
——————
而C++中main()是程序的入口,main()函数为执行的起点
print('hahahaha')
class Dog:
def __init__(self,color):
self.color =