的名單我有這樣一個字符串列表:列表映射到列表
mylist = ["This is quite possibly the worst movie ever made. Even my 4 year old hated it and wanted to leave.", "I hate this movie."]
我想擴大mylist
尺寸:
[["This is quite possibly the worst movie ever made. Even my 4 year old hated it and wanted to leave."], ["I hate this movie."]]
我怎樣才能做到這一點?
好的,你是Python新手,但我敢打賭,你至少在編碼方面嘗試過,對吧? – Raptor
你的意思是你想把列表中的每個字符串轉換成一個單詞列表? –
是的。我仍在尋找解決方案。對不起,如果它是煩你 – Ideal