好在python中str型別本身自帶了兩種方法(method)提供了相應的功能。 str轉為list. 使用split方法. 基本使用. <list> = <str>.split(<separator>).
確定! 回上一頁