The elements of argv are strings, they're not parsed like literals in the program.
You should just pass a comma-separated string (without the brackets):
python3 test.py 1,2,3,4,5 0
and then use split() to convert it to an array.
import sys
arr = sys.argv[1].split(',')
print(arr[2])