What does 'u' before a string in python mean? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: What does the ‘u’ symbol mean in front of string values? I have this json text file: { "EASW_KEY":" aaaaaaaaaaaaaaaaaaaaaaa", "EASF_SESS":" aaaaaaaaaaaaaaaaaaaaaaa", "PHISHKEY":" aaaaaaaaaaaaaaaaaaaaaaa", "XSID":" aaaaaaaaaaaaaaaaaaaaaaa" } If I decode it like this: import json data = open('data.txt').read() data = json.loads(data) print data['EASW_KEY'] I get this: u' aaaaaaaaaaaaaaaaaaaaaaa' instead of simply: