#coding=utf-8
L = [123, "xunye", 'ab']
print(L)
print(len(L))
print(L[0])
print(L[:-1])
L += [4, 5, 6]
print(L)
L.append('NI')
print(L)
print(L.pop(2))
print(L)
#L.sort()
#print(L)
S = ["cc", "kk", "aa", "ef"]
print(S)
S.sort()
print(S)
S.reverse()
print(S)
input();
输出: