something go wrongly

levi nie levinie001 at gmail.com
Sat Jul 7 13:23:12 EDT 2012


my code:
aList=[1,2,3,4,5,6,7,8,9,10]
xList=[1,2,3]
print "now aList is",aList.extend(xList)
output:
now aList is None
what i want is [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120708/5711758e/attachment.html>


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /