静态变量和动态变量静态变量就是在定义的时候,有static修饰的变量,形式为static TYPE var_name = init_value;动态变量,形式为TYPE var_name = init_value;即没有static