相当于作用域受限的局部变量定义方法 @2018-12-27 【小记】 下边使用static修饰的局部变量改变了变量的生存期,使其可以保存上一次的值 func { static int local; local = !local; } static用法的参考