可以通过使用A列表中的索引(映射到B列表中的元素数)和模运算来实现这一点( % ) :
%
A = [1,2,3,4,5,6,7,8] B= ['a','b'] C = [] for i in range(len(A)): C.append(f"{A[i]}{B[i%2]}")