冉扰网 > 生活 > 正文

​scheme(你知道scheme和schema在计算机领域的代表含义吗?)

2026-02-04 10:44 来源:冉扰网 点击:

scheme(你知道scheme和schema在计算机领域的代表含义吗?)

今天在看一段程序源码的时候,看到使用了单词 scheme 作为变量名来表示协议类型。以前接触类似意思比较多的单词是 schema,所以比较困惑 scheme 和 schema 到底有什么区别。于是查了很多资料,终于弄明白了。先看下《牛津高阶英语词典》对这两个词的定义:

scheme1.aplanorsystemfordoingororganizingsomething 2.aplanforgettingmoneyorsomeotheradvantageforyourself,especiallyonethatinvolvescheatingotherpeople3.anorderedsystemorarrangement4.(ScottishEnglish,informal)anareaofsocialhousing(=housesorflatsforpeopletorentorbuyatlowprices) schema1.anoutlineofaplanortheory

可以看出 scheme 可以理解为

指比较明确的具体的方案、计划、体系等。在计算机领域可以指例如术语词表、分类表等

schema 可以理解为

计划或理论的大纲,梗概、概述等。在计算机领域可以指编码规范、技术规范、数据使用规范等

总的来说,scheme 比 schema 指的东西更具体一些。