code
/kəʊd/ (bre, ipa) · /kəʊd/ (ame, ipa) · /ˈkōd/ (ame, mw) · /koʊd/ (ame, ipa)
code — 名詞
- codesingular
- codesplural
1. any system of signs, characters, or digits that lets people pass hidden meaning
密碼;代碼
用於保密或簡化資訊的符號系統
any system of signs, characters, or digits that lets people pass hidden meaning between one another, or present data in a condensed way
The spy sent all messages in code so that enemy agents could not read them.
那名間諜用密碼傳送所有訊息,以免敵方特務讀取內容。
in code — using a secret communication system
Each item in the warehouse has a bar code that a scanner can read instantly.
倉庫裡的每件商品都有條碼,掃描器可以立刻讀取。
bar code — product identification system
Aiko learned Morse code during a summer survival course and still recalls the dots and dashes.
Aiko 在暑期野外求生課程中學會了摩斯密碼,至今仍記得那些點和劃。
The hospital gives every new patient a unique identification code on their wristband.
這家醫院會給每位新病人一個獨特的身分識別碼,戴在手腕帶上。
The area code for Tokyo is 03, so you must dial that before the local number.
東京的區域號碼是 03,所以撥打當地電話前要先撥這個號碼。
- cipher
specifically a method of transforming a message to hide its meaning; more technical than code
- symbol system
broader; refers to any set of symbols that convey meaning, not necessarily secret
- plain text
a message in its original, readable form before being put into code
文法句型
code + for + noun
in code
用法筆記
Countable for individual systems (a secret code, a bar code); uncountable when referring to the concept of using codes (information sent in code).
常見錯誤
2. a collection of written regulations that govern the behaviour of members inside
法規;準則
特定專業或組織的書面行為規則
a collection of written regulations that govern the behaviour of members inside a particular profession, organization, or country
All doctors must follow the medical code of conduct when treating patients.
所有醫師在治療病人時都必須遵守醫療行為守則。
code of conduct — rules for professional behaviour
The company introduced a new dress code that requires formal wear from Monday to Thursday.
公司推出了新的服裝規定,週一到週四必須穿著正式服裝。
dress code — rules about what to wear
Lawyers who break the professional code can lose their licence to practise law.
違反職業規範的律師可能會被吊銷律師執照。
The building code in this city requires every office to have two emergency exits.
本市建築法規規定每間辦公室必須有兩個緊急出口。
Leila studied the tax code carefully before filing her company's annual return.
Leila 在申報公司年度稅務前仔細研究了稅法。
- regulations
more formal and specific; regulations are often enforceable by law
- guidelines
less strict than a code; guidelines are suggestions rather than binding rules
文法句型
code of + noun
code for + noun
用法筆記
Commonly followed by 'of' (code of conduct, code of practice) or used as a compound noun (dress code, building code, penal code). When referring to law, often used with 'the' + specific jurisdiction (the German civil code).
常見錯誤
3. a set of personal or social beliefs about what is right and wrong, which guides
道德準則
個人或社會對是非的信念
a set of personal or social beliefs about what is right and wrong, which guides how a person or a group behaves
According to their moral code, telling a lie is never acceptable even when it helps.
根據他們的道德準則,說謊永遠不可接受,即使說謊對自己有好處。
moral code — personal beliefs about right and wrong
Honour is a central value in the samurai code of behaviour.
榮譽是武士行為規範中的核心價值。
Each culture has its own unwritten code of politeness that visitors should try to learn.
每種文化都有其不成文的禮儀規範,訪客應該設法了解。
His personal code prevented him from cheating on the exam even though nobody was watching.
他個人的道德原則讓他不願意在考試中作弊,即使四下無人。
The code of honour among the old fishermen meant they always shared their catch equally.
老漁夫們之間約定俗成的榮譽規範,是他們總是平分漁獲。
- ethics
more formal and often refers to a philosophical system; 'code' is more personal and practical
- principles
broader; principles are fundamental beliefs that may form a code
文法句型
code of + noun
用法筆記
Unlike sense 2 (RULES), this sense refers to unwritten, often personal principles rather than official written regulations. Frequently appears with personal possessives (his code, their code) or in phrases like 'code of honour' and 'moral code'.
4. a set of instructions written in a programming language that tells a computer wh
程式碼
電腦程式語言的指令集合
a set of instructions written in a programming language that tells a computer what operations to perform
Theo spent the whole weekend writing code for his new mobile game.
Theo 花了整個週末為他的新手遊寫程式碼。
writing code — creating computer programs
A small mistake in the code caused the website to show the wrong prices.
程式碼中的一個小錯誤導致網站顯示錯誤的價格。
Learning to read and write code is now a useful skill for many jobs outside technology.
學會閱讀和撰寫程式碼,現在已是許多非科技領域工作的實用技能。
Rohan reviewed the code and found several places where it could run much faster.
Rohan 檢查了程式碼,發現了好幾處可以大幅提升執行速度的地方。
The team wrote thousands of lines of code to build the navigation system for the drone.
團隊寫了好幾千行程式碼,用來打造無人機的導航系統。
- source code
specifically the human-readable version of code before it is compiled
- programming instructions
more general and descriptive; explains the concept to non-specialists
文法句型
write code
code + verb
用法筆記
Usually uncountable (the code, some code, lines of code) but countable when referring to a specific program or section (this piece of code, the code for the login page).
常見錯誤
5. the complete set of biological instructions stored in DNA that gives a living th
遺傳密碼
DNA中決定生物特徵的資訊
the complete set of biological instructions stored in DNA that gives a living thing its characteristics and controls how its body works
Scientists have successfully mapped the entire genetic code of the wheat plant.
科學家已成功繪製出小麥完整的基因密碼圖譜。
genetic code — the biological information in DNA
A tiny change in the genetic code can sometimes cause a serious medical condition.
遺傳密碼中一個微小的變化,有時會導致嚴重的疾病。
The team compared viral genetic code from different countries to track its spread.
團隊比較了不同國家的病毒基因密碼,以追蹤其傳播途徑。
The genetic code of this dog breed explains why it grows such a thick winter coat.
這種狗品種的基因密碼,解釋了牠為什麼會長出那麼厚的冬季毛皮。
All living things on Earth share the same basic genetic code made from four chemical letters.
地球上的所有生物都共享由四個化學字母構成的相同基本基因密碼。
- genome
refers to the entire set of genetic material, while 'genetic code' refers specifically to the rules by which it works
- DNA sequence
the specific order of chemical units in DNA
文法句型
genetic code
用法筆記
Almost always appears in the phrase 'genetic code' in biology. The term 'code' alone is rarely used in this sense without 'genetic' modifying it.
6. a particular variety of language used by a specific group of people, or a system
語碼;方言
特定群體使用的語言或溝通方式
a particular variety of language used by a specific group of people, or a system of words that only insiders understand
The children created a secret code using made-up words that their parents could not follow.
孩子們用自創詞語發明了一套秘密暗語,他們的父母聽不懂。
Linguists are working to document the spoken code used by older members of the fishing community.
語言學家正在記錄這個漁村年長居民所使用的口頭語碼。
spoken code — a language variety used by a particular group
The academic code in her paper was too full of specialist terms for a general reader.
她的研究論文中充滿了學術用語,對一般讀者來說太過專業。
Yara learned the local code of hand signals that market traders used to communicate from a distance.
Yara 學會了當地市場攤販用來遠距離溝通的手勢暗號。
Teenagers in the school developed their own code of slang that confused the new teachers.
學校裡的青少年創造了他們自己的俚語暗號,讓新來的老師一頭霧水。
用法筆記
This sense overlaps with the COMMUNICATION SYSTEM sense (sense 1) but focuses specifically on language and dialect varieties rather than secret or technical encoding. It is less common in everyday speech and appears mostly in linguistics or social commentary.
code — 動詞
- codepresent simple I / you / we / they
- codes3rd person singular
- coding-ing form
- codedpast simple
1. to transform a message into symbols that only its intended recipient has the too
編碼;加密
將訊息轉為密碼形式
to transform a message into symbols that only its intended recipient has the tools to decode
The general ordered his team to code the message before sending it to the front-line base.
將軍下令他的團隊在將訊息發送到前線基地之前先進行編碼。
Diego learned how to code simple messages using a substitution cipher during his training.
Diego 在訓練期間學會了如何用替代密碼為簡單訊息加密。
code + noun phrase — convert information into code
The software automatically codes any sensitive customer data before storing it on the server.
該軟體會自動將任何敏感的客戶資料加密,再儲存到伺服器上。
All patient records are coded so that private medical information stays protected.
所有病患記錄都被編碼處理,以保護私人醫療資訊。
The agent coded the meeting coordinates into a series of innocent-looking song lyrics.
特務將會面座標編碼,藏在幾句看似無害的歌詞裡。
文法句型
code + noun phrase
code + noun phrase + as + noun phrase
用法筆記
Frequently used in the passive voice (the message was coded). Contrast with 'encode', which is more technical and more common in computing contexts.
常見錯誤
2. to write instructions in a programming language that a computer can follow to pe
寫程式
用程式語言撰寫電腦指令
to write instructions in a programming language that a computer can follow to perform tasks
Hana started learning to code when she was twelve years old.
Hana 十二歲時就開始學習寫程式。
intransitive: to code — write computer programs as an activity
The team coded a new feature that lets users share photos with one tap.
團隊編寫了一個新功能,讓使用者只需點一下就能分享照片。
transitive: code + noun phrase — write a specific program
Priya coded the entire search algorithm in less than a week.
Priya 在不到一週內就寫好了整個搜尋演算法的程式。
Many online courses now teach adults who want a career change how to code from scratch.
許多線上課程現在教導想轉職的成年人從零開始學習寫程式。
Kofi codes mobile games that have been downloaded over a million times around the world.
Kofi 開發的手機遊戲在全球已被下載超過一百萬次。
文法句型
code (intransitive)
code + noun phrase (transitive)
用法筆記
Can be used intransitively (she codes for a living) or transitively (he coded an app). The intransitive use emphasizes the activity; the transitive use emphasizes the product. This is the most common verb sense in everyday modern English.
常見錯誤
3. to place a letter, number, or symbol on an object so that people can quickly rec
標示代碼
以符號或數字標記物品以利分類
to place a letter, number, or symbol on an object so that people can quickly recognize its category, origin, or destination
Each blood sample was coded with a unique number before being sent to the laboratory.
每個血液樣本在送往實驗室前都標上了獨一無二的編號。
passive: was coded with — frequently used in passive
The librarian coded every book by subject so that readers could find them more easily.
圖書館員按照主題為每本書編碼,方便讀者查找。
code + by — organize using a classification system
Museum artefacts are coded with small tags that contain their full catalog history.
博物館文物都貼有小標籤,標註其完整的藏品編號。
The factory worker coded each product with a batch number for safety tracking.
工廠工人為每件產品標上批號,以便進行安全追溯。
All survey answers were coded according to the age group of each participant.
所有問卷答案都按照每位受訪者的年齡層進行編碼分類。
文法句型
code + noun phrase + with + noun phrase
用法筆記
Distinguish from sense 1 (HIDE MESSAGE): this sense is about classifying and organizing, not about secrecy. The marking is meant to be read by anyone who knows the system, not hidden from unauthorized readers.
4. to depict a person or object in a way that hints at a certain quality or class,
暗示;暗指
不直接說出而暗示某種特質
to depict a person or object in a way that hints at a certain quality or class, without saying so directly
The politician's speech coded his opponent as being disconnected from ordinary working people.
那位政治人物在演講中間接把對手描繪成與一般勞工脫節的人。
code + as — suggest a quality indirectly
Luxury advertisements often code their products as symbols of personal success and social status.
精品廣告往往將其產品暗示為個人成功與社會地位的象徵。
The article coded the neighbourhood as unsafe without ever using that exact word directly.
那篇文章將該社區暗示為不安全的地方,卻從未直接使用這個詞。
By choosing certain background music and lighting, the film coded the villain as dangerous.
透過特定的背景音樂和燈光選擇,該片將反派角色暗示為危險人物。
The director coded the scientist as foreign by giving him an accent and unfamiliar customs.
導演讓那位科學家帶有口音和不熟悉的習俗,藉此暗示他是外國人。
- signal
more general; can be intentional or unintentional
- convey indirectly
more descriptive and clearer for learners
文法句型
code + noun phrase + as + noun phrase/adjective
用法筆記
This is an abstract, somewhat technical sense used in media studies, sociology, and criticism. Unlike senses 1-3, it does not involve actual symbols or marks — the 'coding' is done through language, imagery, and cultural associations.
常見錯誤
5. to carry the genetic information that tells a living thing's cells to produce a
編碼指令
基因攜帶製造物質或特徵的資訊
to carry the genetic information that tells a living thing's cells to produce a particular substance or develop a specific feature
A specific gene codes for the production of insulin in the human body.
人體內有一個特定的基因負責編碼製造胰島素。
code + for — instruct the production of a substance
The mutated DNA now codes for a protein that is completely different from the healthy version.
突變後的 DNA 現在會編碼出一種與健康版本完全不同的蛋白質。
Scientists discovered which section of the genome codes for feather colour in parrots.
科學家發現了基因組中哪個區段負責編碼鸚鵡的羽毛顏色。
This stretch of genetic material codes for hair texture and the colour of a person's skin.
這一段遺傳物質負責編碼頭髮的質地和一個人的膚色。
The research team found the gene that codes for resistance to a deadly rice fungus.
研究團隊找到了負責編碼抗稻瘟病能力的基因。
文法句型
code + for + noun phrase
be coded + to-infinitive
用法筆記
Almost always used in scientific contexts with 'for' (codes for a protein / codes for eye colour). The subject is typically a gene, segment of DNA, or the genetic code itself.