Sum Qo'D tob 'e' SoH
jeD ngeH maHaD 'e roj message maHa might consider
leaving SoH yong roj 'baD yInD SoHDa Haup lives
jeD ngeH maHaD 'e roj message maHa might consider
我如何可以将其转换到这个列表:Python3创建列表
[['Sum', 'Qo'D', 'tob', "'e'", 'SoH'],
['jeD', 'ngeH', 'maHaD', "'e", 'roj', 'maHa', 'might'],
['leaving', 'SoH', 'yong', 'roj', "'baD", 'yInD', 'SoHDa', 'Haup']
['jeD', 'ngeH', 'maHaD', "'e", 'roj', 'message', 'maHa', 'might', 'consider']]
例如list[0]
是['Sum', 'Qo'D', 'tob', "'e'", 'SoH']
或list[0][0]
是Sum
。
见:['str.split()'](HTTPS://docs.python .ORG/3 /库/ stdtypes.html#str.split)。 –