When python Cartesian product is used for array combination, how to get the original subscript value at the same time?

A = [a, br, b, and c]
B = [1, 2, 3, 4]
C = [6, 7, 8, 9]
for s in itertools.product (A, 7, C, C)

print s
-sharpSsABC
May.10,2022

if you can go around a little, add enumerate, that is:

for i in itertools.product(enumerate(A),enumerate(B),enumerate(C)):
    -sharp i((3, 'd'), (3, 4), (3, 9))index
    s = tuple([item[1] for item in i])
    s_index = tuple([item[0] for item in i])

s_index is the required subscript value.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3dad6-2c393.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3dad6-2c393.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?