尋找一種方法將以下字符串列表拆分爲子列表並使用for循環打印。在python中將字符串列表拆分爲子列表
[[[u'Book1', None, u'Thriller', u'John C', u'07/12/2012'],
[u'Book2', u'1', u'Action', u'Tom B', u'07/12/2012'],
[u'Book3', None, u'Romance', u'Angie P', u'07/12/2012'],
[u'Book4', None, u'Comedy', u'Tracy N', u'07/12/2012'],
[u'Book5', None, u'Drama', u'Kumar P', u'07/12/2012'],
[u'Book6', None, u'Action&Drama', u'Ben J', u'07/12/2012']]]
請任何建議。
什麼情況下你要使用分割呢? – Suever
根據[u'Book1',None,u'Thriller',u'John C',u'07/12/2012'] – phani
您的預期產出是多少? –