标签:例子 nbsp div insert span style 插入 结果 字符
insert() 用于在指定的索引前面插入元素,如下例子表示在索引为 2(即‘c‘)的前面插入字符‘c‘ ,结果为 [‘a‘, ‘b‘, ‘c‘, ‘c‘]
In [42]: a = [‘a‘, ‘b‘, ‘c‘] In [43]: a.insert(2, ‘c‘) In [44]: a Out[44]: [‘a‘, ‘b‘, ‘c‘, ‘c‘]
标签:例子 nbsp div insert span style 插入 结果 字符
原文地址:http://www.cnblogs.com/pzk7788/p/7865233.html