import itertools
tempprefixx = ['1612763523', '5758986']
tempprefix = [['.', i] for i in tempprefixx]
print("tempprefix is : ", tempprefix)
prefix = list(itertools.chain.from_iterable(tempprefix))
print("prefix is : ", prefix )
结果:
tempprefix is : [['.', '1612763523'], ['.', '5758986']]
prefix is : ['1612763523', '.', '5758986']