jolausa

Untitled

Feb 13th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. >>> str1=u'value1'
  2. >>> str2=str1.encode()
  3. >>> print str1
  4. value1
  5. >>> print str2
  6. value1
  7. >>> print {'key1':str1, 'key2':str2}
  8. {'key1': u'value1', 'key2': 'value1'}
Advertisement
Add Comment
Please, Sign In to add comment