在大型项目中,过度使用全局变量会使调试变得困难。

Overusing globals in large projects can make debugging difficult.

点击显示答案

Overusing globals in large projects can make debugging difficult.

globals 是 global 的复数形式,global 作为名词时指"全局变量"(global variables 的简称),在编程中指在整个程序范围内都可访问的变量。 在大型项目中过度使用全局变量会带来命名冲突等问题,增加调试难度,因此需要谨慎使用。

在 App 中完整学习这张卡片

在 App 中学习