带=号的字符串转成字典

s = 'a=1,b=2,c = 3'

dic = dict((l.split('=') for l in s.split(',')))

原文地址:https://www.cnblogs.com/ahliucong/p/9220345.html