整理了一些自己在編程中常用的變量命名縮寫。
(憑自己感覺分類)
| 全稱 |
縮寫 |
翻譯 |
| calculate |
calc |
計算 |
| addition |
add |
加 |
| subtraction |
sub |
減 |
| multiplication |
mul |
乘法 |
| division |
div |
除法 |
| hexadecimal |
hex |
十六進制 |
| 全稱 |
縮寫 |
翻譯 |
| array |
arr |
數組、集合 |
| list |
lst |
列表 |
| Sequence |
seq |
|
| Segment(s) |
seg |
|
| stack |
stk |
棧 |
| dictionary |
dict |
字典 |
| character |
char |
字符 |
| string |
str |
字符串 |
| text |
txt |
文本 |
| float |
flt |
浮動、浮點 |
| number |
num |
數量、編號 |
| image |
img |
圖像 |
| bitmap |
bmp |
位圖 |
| table |
tbl |
表 |
| link |
lnk |
鏈接 |
| lable |
lbl |
標簽 |
| flag |
flg |
標志 |
| container |
cntr |
容器 |
| time stamp |
ts |
時間戳 |
| length |
len |
長度 |
| positive |
pos |
|
| negative |
neg |
|
| 全稱 |
縮寫 |
翻譯 |
| statistic |
stat |
統計 |
| summation |
sum |
和 |
| average |
avg |
平均 |
| maximum |
max |
最大值 |
| minimum |
min |
最小值 |
| middle |
mid |
中值 |
| increment |
inc |
增加、增量 |
| increase |
inc |
增加 |
| decrease |
dec |
減少 |
| different |
diff |
不同的 |
| frequency |
freq |
頻率 |
| optimization |
opt |
最優 |
| total |
tot |
全部的 |
| vertical |
vert |
垂直 |
| horizontal |
horz |
水平 |
| 全稱 |
縮寫 |
翻譯 |
| row |
row |
行 |
| column |
col |
列 |
| positon |
pos |
位置 |
| point |
pt |
點 |
| pointer |
ptr |
指針 |
| index |
idx / ndx |
索引、指示 |
| value |
val |
值 |
| reference |
ref |
引用 |
| 全稱 |
縮寫 |
翻譯 |
| status |
stat |
狀態 |
| original |
orig |
原件 |
| source |
src |
源頭 |
| address |
addr |
地址 |
| coordinates |
coord |
坐標 |
| previous |
pre |
前一個 |
| current |
cur |
當前的 |
| initalize |
init |
初始化 |
| destination |
dst/dest |
目的 |
| iteration |
itr/iter |
循環、迭代 |
| count |
cnt |
計數器 |
| 全稱 |
縮寫 |
翻譯 |
| temporary |
temp或tmp |
臨時 |
| source |
src |
源頭 |
| resource |
res |
資源 |
| result |
res |
結果 |
| return |
ret |
返回 |
| return |
rtn |
返回 |
| answer |
ans |
響應、回答 |
| buffer |
buf或buff |
緩沖區 |
| 全稱 |
縮寫 |
翻譯 |
| database |
db |
數據庫 |
| administrator |
adm |
管理員 |
| password |
pwd |
密碼 |
| user |
usr |
用戶 |
| 全稱 |
縮寫 |
翻譯 |
| directory |
dir |
目錄 |
| document |
doc |
文檔 |
| library |
lib |
庫 |
| function |
func |
函數 |
| object |
obj |
對象 |
| argument |
arg |
實參 |
| instance |
ins |
實例 |
| variable |
var |
變量 |
| parameter |
param |
參數(形參) |
| 全稱 |
縮寫 |
翻譯 |
| encode |
enc |
編碼 |
| print |
prn |
打印 |
| delete |
del |
刪除 |
| insert |
ins |
插入 |
| error |
err |
錯誤 |
| break |
brk |
間斷 |
| package |
pkg |
打包 |
| escape |
esc |
退出 |
| execute |
exec |
執行 |
| command |
cmd |
命令 |
| configuration |
config |
配置 |
| edit |
edt |
編輯 |
| display |
disp |
顯示 |
| initialize |
init |
初始化 |
| trigger |
trig |
觸發 |
| capture |
cap或capt |
捕獲 |
| system |
sys |
系統 |
| environment |
env |
環境 |
| window |
win(wnd) |
窗口 |
| device |
dev |
設備 |
| message |
msg |
消息 |
| signal |
sig |
信號 |
| information |
info |
信息 |
| error |
err |
錯誤 |
參考:
https://blog.csdn.net/wf19930209/article/details/78577918
https://blog.csdn.net/new_new_zero/article/details/79046107