python3 列表中的每一項字符串轉數字

list =["123,45","899899,4534","34,1234"] tmp=[] list2=[] for i in range(len(list)): tmp =list[i].split(",") list2+=tmp print (list2) list2 =[int(list2[x]) for x in range(len(list2))] print (li
相關文章
相關標籤/搜索