分享給大家供大家參考,具體如下: 字串轉陣列str = '1,2,3' arr = str.split(',') print a ... 也就是在python中,通常用一對雙引號,或者單引號來包裹一個字串。
確定! 回上一頁