a=[1,2]
b=['a','b']
#我要输出[[1,2,'a'],[1,2,'b']]
c=[]
for i in b:
c.append(a+[i])
print(c)
[原提问:链接标题]
(http://t.csdn.cn/5GWdH?spm=1005.2026.3001.5622)
a=[1,2]
b=['a','b']
#我要输出[[1,2,'a'],[1,2,'b']]
c=[]
for i in b:
c.append(a+[i])
print(c)
[原提问:链接标题]
(http://t.csdn.cn/5GWdH?spm=1005.2026.3001.5622)