好词典

parameterized

UK /pəˈræmɪtəraɪzd/US /pəˈræmɪtəraɪzd/

词源

源自parameter(参数)+ -ize(动词化后缀) + -ed(过去分词作形容词),20世纪中期随计算机科学发展而出现。

adjective

❶ 指通过参数来定义或控制的事物,常用于计算机编程中,表示某个功能或模块可以根据传入的不同参数进行调整或配置。

“The function is parameterized to accept different input types.”

(该函数被参数化,可以接受不同类型的输入。)

“A parameterized query helps prevent SQL injection attacks.”

(参数化查询有助于防止SQL注入攻击。)

同义词:configurable, customizable, tunable

常见短语

parameterized query — 数据库查询的一种安全写法,将变量作为参数传递而非直接拼接SQL语句,能有效防止注入攻击。

“Always use parameterized queries when dealing with user inputs.”

(处理用户输入时务必使用参数化查询。)

parameterized test — 软件开发中的测试方法,通过传入不同参数来重复运行同一测试逻辑,验证多种情况。

“JUnit 5 supports parameterized tests with @ParameterizedTest annotation.”

(JUnit 5通过@ParameterizedTest注解支持参数化测试。)