本文实例讲述了python插入数据到列表的方法。分享给大家供大家参考。具体如下: list = ["red","green"] list.insert(1,"blue") assert list == ["red","blue", "green"] 希望本文所述对大家的Python程序设计有所帮助。