在Python 中,你可以使用 split() 函數來將一個字串分割成多個子字串。 text = "Alice, Bob, Charlie" names = text.split(",") print(names) # 顯示:[' ...
確定! 回上一頁