我正在阅读有关静态和其他说明符的文档 here,它说The static specifier is only allowed in the declarations of variables (except in function parameter lists ), declarations of functions (except at block scope), and declarations of anonymous unions. When used in a declaration of a class member, it declares a static member. When used in a declaration of a variable, it specifies static storage duration (...