parameter和argument的区别

    xiaoxiao2026-05-19  7

    1. parameter是指函数定义中参数,而argument指的是函数调用时的实际参数。

    2. 简略描述为:parameter=形参(formal parameter), argument=实参(actual parameter)。

    While defining method, variables passed in the method are called parameters. 当定义方法时,传递到方法中的变量称为参数. While using those methods, values passed to those variables are called arguments. 当调用方法时,传给变量的值称为引数.(有时argument被翻译为“引数“)

    转载请注明原文地址: https://ju.6miu.com/read-1309853.html
    最新回复(0)