In python docs it describe the basic data structure type list at python's data structure. When I try to do work that breaks a list into two parts, and calls some functions with these parts. And calling some functions will modify the input list value but not space reallocate. Unfortunately, we can't break the list into different parts without reallocate space, which is different in c/c++ we use pointer to use the same space. It's there some way that we can reference the part of list like pointer in c/c++. Or only we can if we use other extends type in python, for example , numpy's array.
# here is the example
A = range(10)
part1_of_A = A[:5]
part2_of_A = A[5:]
part1_of_A[0] = 100 # but part1_of_A is copy but not reference of A
# A]0] not changed
# numpy array works
import numpy
A = numpy.zeros(10)
part1_of_A = A[:5]
part2_of_A = A[5:]
part1_of_A[0] = 100 # it indeed change A[0]
# can list do the same job in other ways? Or it can't.