Advertisement
Guest User

Untitled

a guest
Jul 17th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #I have a list of dictionaries
  2.  
  3. data_list = [{u'#text': u'2018-06-12 14:54:53.887', u'@Name': u'UtcTime'}, {u'#text': u'{13287959-C763-5B1A-0000-001097D60000}', u'@Name': u'ProcessGuid'}]
  4.  
  5.  
  6. #want to turn the list into a value for a dictionary:
  7.  
  8. {'Data':
  9.     {u'#text': u'2018-06-12 14:54:53.887', u'@Name': u'UtcTime'},
  10.     {u'#text': u'{13287959-C763-5B1A-0000-001097D60000}', u'@Name': u'ProcessGuid'}
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement