python编写hello,world!

print("hello,world!")

a=[1,2,3,'a','b']
a.insert(2,10) //在2位置后面插入9
切片
a[0:2] //第一个到第二个(顾首不顾尾)
a[0:5:2] //切第一个到第五个,每隔一个切一次
a[-2:] //取倒数两个数
a.sort() //排序

原文地址:https://www.cnblogs.com/ydfq/p/6942409.html