Printing a string prints 'u' before the string in Python?
问题 'u' before elements in printed list? I didn't type u in my code. hobbies = [] #prompt user three times for hobbies for i in range(3): hobby = raw_input('Enter a hobby:') hobbies.append(hobby) #print list stored in hobbies print hobbies When I run this, it prints the list but it is formatted like this: Enter a hobby: Painting Enter a hobby: Stargazing Enter a hobby: Reading [u'Painting', u'Stargazing', u'Reading'] None Where did those 'u' come from before each of the elements of the list? 回答1: