x='abc'
y=123
想要输出a=1,b=2,c=3,我是这么写的:
x='abc'
y=123
[k+'='+v for k in x for v in y if isinstance(y,str) else v for v in str(y)]
但是提示出错,请问应该怎么改
x='abc'
y=123
想要输出a=1,b=2,c=3,我是这么写的:
x='abc'
y=123
[k+'='+v for k in x for v in y if isinstance(y,str) else v for v in str(y)]
但是提示出错,请问应该怎么改