如果我們想要一個可以放任何資料型態的陣列,可以宣告如下: var list: [Any] = [] list.append("hello") //字串 list.append(10) //整數 list.append(20.3) //浮點數 ...
確定! 回上一頁