标签: string python-2.7 dictionary
包含新行的字符串将被视为不同的键,并且每行都带有'=',这将被视为每个键的值?
String = "index=123\nTime=3\nFrequency=5".
预期词典:
{'index':123, 'Time':3, 'Frequency':5}