1 2 3 4 5 6 7 8 9 10 | import sys from ConfigParser import SafeConfigParser parser = SafeConfigParser() parser.readfp(sys.stdin) config = dict((section, dict((option, parser.get(section, option)) for option in parser.options(section))) for section in parser.sections()) print config |
aW1wb3J0IHN5cwpmcm9tIENvbmZpZ1BhcnNlciBpbXBvcnQgU2FmZUNvbmZpZ1BhcnNlcgoKcGFyc2VyID0gU2FmZUNvbmZpZ1BhcnNlcigpCnBhcnNlci5yZWFkZnAoc3lzLnN0ZGluKQoKY29uZmlnID0gZGljdCgoc2VjdGlvbiwgZGljdCgob3B0aW9uLCBwYXJzZXIuZ2V0KHNlY3Rpb24sIG9wdGlvbikpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIG9wdGlvbiBpbiBwYXJzZXIub3B0aW9ucyhzZWN0aW9uKSkpCiAgICAgICAgICAgICAgZm9yIHNlY3Rpb24gaW4gcGFyc2VyLnNlY3Rpb25zKCkpCnByaW50IGNvbmZpZw==
-
upload with new input
-
result: Success time: 0.11s memory: 10984 kB returned value: 0
[a] b = 1 c = 2 [d] e = 3
{'a': {'c': '2', 'b': '1'}, 'd': {'e': '3'}}


