[Python] 將List 內的項目轉換型態. >>> a = ['1', '2', '3', '4'] >>> a ['1', '2', '3', '4'] >>> a[:] = [int(x) for x in a] >>> a [1, 2, 3, 4]
確定! 回上一頁