python问题,求大神解答

有两串字符串a=12345b=qwert怎样得到c=1q2w3e4r5t
2024-12-11 17:41:00
推荐回答(2个)
回答1:

这样搞:

回答2:

a = '12345'
b = 'qwert'
c = zip(a, b)
s = ''.join([p[0] + p[1] for p in list(c)])
print(s)