在程序世界中,我们经常会用到两个词条来标识变量,即Parameter和Argument。那么,现在的问题是,这两者有什么区别呢?通常我们认为,parameter是参数,而argument是参数的值。对应的中文术语是:parameter = 形参;argument = 实参。What is the difference between an argument and a parameter?>> While defining method, variables passed in the method are called parameters.>> While using those methods, values passed to those variables are called arguments. 当我们定义一个方法的时候,传入变量的名字就是Parameter。我们来看一个例子:1234function GetSquareArea(sideLength) { return sideLength*sideLength; } 这里,sideLength就是Parameter。当我们在调用这个方法的时候,值会传给变量,这个变量就叫Argument。例如:12var intSideLength = 4;var intSquareArea = GetSquareArea(intSideLength);程序运行的时候,intSideLength会被赋值为4,那么对于方法GetSquareArea的调用,intSideLength就是Argument。
参数英文是parameterparameter音标:英 [pəˈræmɪtə(r)]美 [pəˈræmɪtɚ]名词:[数]参数; <物><数>参量; 限制因素; 决定因素第三人称复数:parametersparameter 相关例句1.It is the parameter of distribution. 这就是分布参数。2、This is a very important parameter. 这是一个非常重要的参数。3、Each input parameter should have the variable name and its value. 各输入参数应该有自己的变量名和值。
参数 [cān shù] [词典] parameter; [例句]它包含了与两个相等带电粒子凝聚增强因子中所包含的同样参数。It involves the same parameter as that involved in the enhancement factor for coagulation of two equally charged particles.