s = ‘a=1,b=2,c = 3‘
dic = dict((l.split(‘=‘) for l in s.split(‘,‘)))
原文地址:https://www.cnblogs.com/ahliucong/p/9220345.html
时间: 2024-11-06 13:44:59
s = ‘a=1,b=2,c = 3‘
dic = dict((l.split(‘=‘) for l in s.split(‘,‘)))
原文地址:https://www.cnblogs.com/ahliucong/p/9220345.html