转载:http://blog.sina.com.cn/s/blog_80ce3a550102w26x.html Convert between Python tuple and list a = (1, 2) # a is a tuple b = list(a) # b is a list c = tuple(b) # c is a tuple Convert between Python tuple, list and NumPy 1D array a = (1, 2) # a is a tu