
好词典

作为 'argument' 的缩写,源自计算机科学领域;作为 'argue' 的缩写,是非正式口语用法。
❶ 在计算机编程中,'arg' 是 'argument' 的缩写,指传递给函数或程序的参数或变量。
“The function takes two args: name and age.”
(这个函数接受两个参数:姓名和年龄。)
“You need to pass the correct args to the script.”
(你需要向脚本传递正确的参数。)
❶ 在非正式场合中,'arg' 是 'argue' 的缩写形式,表示争论或争吵。
“They always arg about small things.”
(他们总是为小事争吵。)
“Don't arg with me, just do it.”
(别和我争了,照做就行。)
command line arg — 指在命令行中传递给程序的参数,通常用于配置或控制程序行为。
“Use command line args to specify the input file.”
(使用命令行参数指定输入文件。)