我想從沒有運氣的提示輸入選項中分配一個變量。如果用戶輸入1,我想要target_db_name =「database2」。 我的代碼: while true; do
read -p "What is the table name?" table_name
table_name=${table_name,,}
if hdfs dfs -test -e /foo/$table_n
爲什麼JavaScript變量在一些站點上正確打印,但在其他站點中未被定義? 例如,在StackOverflow的網頁我可以這樣做: let x = 'y';
console.log(x); // Outputs "y".
但在其他一些網站的網頁,就像this Duolingo exercise的console.log檢查將失敗: let x = 'y';
console.log(x);