var array = [1, 3, 5] array[0] = "x" //error: Cannot assign a value of type ... Dictionary 由一對中括號 [] 構成,裡面的元素以 <key>:<value> 方式存放。
確定! 回上一頁