这有助于避免因意外使用了未经初始化的变量而导致的 bug。
This helps avoid bugs that result from unintentional use of uninitialized variables.
因此,若无密码键入,传递到该函数的是未初始化的变量和脚本错误结果。
Hence, with no password entered, the function is passed an uninitialized variable and a script error results.
另外,对一个没有初始化的变量进行递增操作要比初始化过的来得慢。
In addition, incrementing an uninitialized variable is much slower than if it was initialized.
Conceptually, it's put at the top of my chunk of RAM, -- below it, goes initialized and uninitialized data -- - this is a fancy way of saying global variables come next -- and below that, comes what's called the heap.
概念上,它放置在内存块的顶端,在下面,已初始化的和未初始化的数据-,这是一种指明紧随其后的全局变量的设想方式-,在后来,引入了一个叫做堆的东西。
It's how you can initialize a variable to like zero for counting's sake or something like that.
你可以初始化一个变量,像0用来,计数的或者诸如此类的。
So it's initialized outside the loop when it should be initialized inside the loop. Or conversely, inside the loop when it should be outside the loop. So look carefully at when variables are being initialized.
却忘记了,意思就是它本来应该,是在循环外初始化,但是却是在循环初始化的,所以在初始化变量的时候注意这一点。
应用推荐