Merge pull request #5 from felix0913/master

modify the answer of 3.4
master
kenwoodjw 2019-03-05 17:26:34 +08:00 committed by GitHub
commit efb1bbb018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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