您可以使用工作分配左侧的slice语法执行以下操作:
>>> array = ['the', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog']>>> array[1:1] = ['quick', 'brown']>>> array['the', 'quick', 'brown', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog']
那差不多就是Pythonic了!

您可以使用工作分配左侧的slice语法执行以下操作:
>>> array = ['the', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog']>>> array[1:1] = ['quick', 'brown']>>> array['the', 'quick', 'brown', 'fox', 'jumped', 'over', 'the', 'lazy', 'dog']
那差不多就是Pythonic了!