parameter到底啥意思啊

parameter中文解释 - 老司机带路
字数: 1,800字 领域: 编程/数学/工程 更新时间: 2023-11-28
原文 (English)

Parameter is a term used in various fields including mathematics, statistics, computer programming, and engineering.

In programming, a parameter is a special kind of variable used to pass information between functions or procedures.

The term "parameter" can also refer to:

1. A numerical or other measurable factor forming one of a set that defines a system

2. A quantity whose value is selected for the particular circumstances

3. In statistics, a characteristic of a population

译文 (中文)

parameter这词儿在数学、统计、编程和工程这些领域都挺常见的,说白了就是个"参数"的意思。

在编程里头啊,parameter就是函数之间传数据用的特殊变量,相当于给函数"喂"的料。

这词儿还能指:

1. 定义系统的一组可测量因素中的一个,比如您调空调温度那个数值

2. 根据具体情况选定的量,就跟做菜放盐似的,得看情况

3. 统计学里表示总体特征的量,比如全国平均工资这种

举个栗子🌰:您写个函数计算圆的面积,那个半径r就是parameter。再比如您网购筛选商品,价格区间那些滑块调的就是parameters