37,719
社区成员
发帖
与我相关
我的任务
分享
>>> a = [1,2,3,4,5]
>>> b = a[::-1]
>>> b
[5, 4, 3, 2, 1]
>>>
C:\Documents and Settings\xxx>python
Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> list = ["aa","bb"]
>>> len(list)
2
>>>