The static declaration must be after the visibility declaration.
静态声明必须必须是显式的声明。
Guideline 1 can be ensured by type checking and throwing an error message if there is any static storage declaration in the function.
准则1可以通过类型检查得到保证,如果在函数中有任何静态存储声明,则抛出错误消息。
You might be surprised here if you are unfamiliar with the trick — Python does not have an "official" static scoping declaration.
这里,如果您不熟悉这个诀窍,可能会感到诧异—python没有“正式”的静态范围声明。
应用推荐