python list copy and reference
#!/usr/bin/python# Filename: reference.pyprint 'Simple Assignment'shoplist = ['apple', 'mango', 'carrot', 'banana']mylist = shoplist # mylist is just another name pointing to the same object!del shopl...
原创
2012-03-23 17:20:41 ·
136 阅读 ·
0 评论