程式語言英文常用之符號與詞彙中文對照表

3 月 12, 2020 | | 0 條留言

『程式語言符號與詞彙中英文對照』最主要的參考資料來源是Sololearn這個平台,而Sololearn裡面的教學內容是用英文講解,因此可以學習原文表示程式碼、表達程式邏輯的方式,當然也包含了許多常見符號、詞彙和運算子,是個不錯的教學平台,在Play商店上也有應用程式可供下載,而且App版本還可以跟其他玩家對戰喔!

程式語言常用符號-中英文對照

符號
中文 長相 英文
小數點 . decimal point
. dot (ex:www**.**blogger**.**com)
逗號 , comma
分號 ; semicolon
冒號 : colon
雙冒號 :: double colon
等號 = equal sign
連接號 hyphen / dash
底線 _ underscore
斜線 / forward slash
反斜線 back slash
雙斜線 // double slash
星號 * asterisk
斜線加星號 /* a forward slash followed by an asterisk
星號加斜線 */ an asterisk followed by a forward slash
刪節號 …… ellipsis
波浪號 ~ tilde
錢字號 $ dollar sign
百分號 % percent sign
驚嘆號 ! exclamation mark
井字號 # octothorpe / number sign
小老鼠 @ at sign
單引號 ‘ ‘ single quotes
雙引號 ” “ double quotes
尖括號 <> angle brackets
大括號 { } curly brackets
中括號 [ ] square brackets
小括號 ( ) parentheses
左括弧 ( open parenthesis
右括弧 ) close parenthesis

程式語言常用運算子-中英文對照

運算子
中文 長相 英文
賦值(指派) = assignment operator
相加並賦值 += addition and assignment operator
相減並賦值 -= subtraction and assignment operator
算術運算子(Arithmetic operator)
加法 + addition operator
減法 subtraction operator
乘法 * multiplication operator
除法 / division operator
取餘數 remainder operator
遞增運算子 ++ increment operator
遞減運算子 decrement operator
關係運算子(Comparison operator)
大於 > greater than operator
小於 < less than operator
等於 == equal to operator
不等於 != not equal to operator
大於等於 >= greater than or equal to operator
小於等於 <= less than or equal to operator
邏輯運算子(Logical operator)
&& AND operator
|| OR operator
! NOT operator
位元運算子(Bitwise operator)
位元AND & bitwise AND operator
位元OR | bitwise OR operator
位元互斥OR ^ bitwise XOR operator
取補數 ~ complement operator
位元左移 << left shift operator
位元右移 >> right shift operator

程式語言常用詞彙-中英文對照

詞彙
中文 英文
註解 comment
索引 index
程式碼 code statement
語法 syntax
單行 single-line
多行 multi-line
字母 letter / alphabet
大寫 uppercase
小寫 lowercase
區分大小寫 case-sensitivity
按字典順序 lexicographically
變數 variable
參數 parameter / argument
常數 constant
餘數 remainder
負數 negative number
正數 positive number
偶數 even number
奇數 odd number
分數 fractional number
浮點數 floating-point number
數字 digit
quotient
exponentiation
平方 square
平方根 square root
絕對值 absolute value
保留字 keyword
原生指令 primitive operator
運算子 operator
運算元 operand
修飾符 decorator
二進制 binary
十進制 decimal
十六進制 hexadecimal
小數位 decimal place
優先權 precedence
基本資料型態 primitive data type
參考型態 reference type
類別 class
函式 function
方法 method
介面 interface
物件 object
遞迴 recursion
疊代 iteration
過載 overload
覆寫 override
繼承 inheritance
封裝 encapsulation
多型 polymorphism
泛型 generics
抽象 abstraction
空白鍵 space

其他-中英文對照

其他
中文 範例 英文
以逗號分隔的清單 int a=1, b=3, c=6; comma-separated list
建立一個實例 String s = **new** String(“ABC”); create an instance

分享來源:程式語言常用之符號與詞彙-中英文對照