37,719
社区成员
发帖
与我相关
我的任务
分享
d={'a':1,'b':'2','c':'3','d':'sdf'}
strd=";".join(["{0}={1}".format(key,value) for key,value in d.items()])
print(strd)
d={'a':1,'b':'2','c':'3','d':'sdf'}
print(';'.join(['{}={}'.format(k, v) for k, v in d.items()]))