modify the answer of 3.4

master
dufan 2019-03-05 13:57:39 +08:00
parent b58d0e988b
commit a3334a44b8
1 changed files with 2 additions and 2 deletions

View File

@ -353,7 +353,7 @@
def str2dict(str1):
dict1 = {}
for iterms in str1.split('|'):
key,value = iterms.split(':'):
key,value = iterms.split(':')
dict1[key] = value
return dict1
```