从字符串[Python]创建多级字典 |
您所在的位置:网站首页 › 字典append › 从字符串[Python]创建多级字典 |
从字符串[Python]创建多级字典,python,loops,dictionary,Python,Loops,Dictionary,我正在为我的一个web服务创建一个邮件“bot”,它将定期收集一个从PHP脚本发送的电子邮件队列,并通过Google的SMTP服务器发送。PHP脚本以以下格式返回消息: [email protected]:Full Name:shortname\[email protected]:Another Full Name:anothershortname\[email protected]:Foo:bar 我需要把它“转换”成这样的东西: { "[email protected]": [ |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |