When an inner function gains and USES access to its outer function's variables it is known as a closure.
当内部函数获得和使用其外部函数的变量时,就称其为一个闭包。
Of course, other variables, both known (dedicated bagger) and unknown (payment type, coupons, cigarettes) affect on the speed of the line, but this is a good rule of thumb to use as a baseline.
当然,有些变化的因素,诸如知道的因素(专业装袋工)和不知道的因素(结账方式,优惠券,香烟)会影响速度,但是这是一个不错的基础准则。
He estimated the likelihood that they would marry, using dozens of variables known to predict this, such as race, income and family background.
他使用多个用于预测的变量,如种族、收入和家庭背景,对她们结婚的可能性作出预测。
应用推荐