It is can be useful to have a variable that is in the scope of a function but whose lifetime persists across calls to the function.

  • 一个变量如果位于函数的作用域内,但生命期跨越了这个函数的多次调用,这种变量往往很有用。
目录 查词历史