你可以看下这篇文章,是我见过讲static执行顺序讲得最好的。还有很多例子,很通俗易懂。 传送门:https://twocups.cn/index.php/2020/01/22/16/