cccccccccccccc ""msg '\naaaaaaaaaaaaa\nbbb\'\'\'bbbbbbbbbb""bbbbbbb\'bbbb\ncccccccccccccc\npython also supports raw string literal that turns off the backslash escape mechanism such literals start with the letter and are useful for strings like directory paths on windows ( ' :\text\new'unicode strings python' strings also come with full unicode support required for processing text in internationalized character sets characters in the japanese and russian alphabetsfor exampleare outside the ascii set such non-ascii text can show up in web pagesemailsguisjsonxmlor elsewhere when it doeshandling it well requires unicode support python has such support built inbut the form of its unicode support varies per python lineand is one of their most prominent differences in python xthe normal str string handles unicode text (including asciiwhich is just simple kind of unicode) distinct bytes string type represents raw byte values (including media and encoded text)and unicode literals are supported in and later for compatibility (they are treated the same as normal str strings)'sp\xc 'spamb' \ cb' \ cu'sp\ 'spam xnormal str strings are unicode text bytes strings are byte-based data the unicode literal works in +just str in python xthe normal str string handles both -bit character strings (including ascii textand raw byte valuesa distinct unicode string type represents unicode textand bytes literals are supported in and later for compatibility (they are treated the same as normal str strings)print 'sp\xc mspam ' \ ' \ cb' \ ' \ xunicode strings are distinct type normal str strings contain byte-based text/data the bytes literal works in +just str formallyin both and xnon-unicode strings are sequences of -bit bytes that print with ascii characters when possibleand unicode strings are sequences of unicode code points--identifying numbers for characterswhich do not necessarily map to single bytes when encoded to files or stored in memory in factthe notion of bytes doesn' apply to unicodesome encodings include character code points too large for byteand even simple -bit ascii text is not stored one byte per character under some encodings and memory storage schemes introducing python object types