r“string” b“string” u“string” Python 2 / 3 comparison
问题 I already know r"string" in Python 2.7 often used for regex patterns. I also have seen u"string" for, I think, Unicode strings. Now with Python 3 we see b"string" . I have searched for these in different sources / questions, such as What does a b prefix before a python string mean?, but it's difficult to see the big picture of all these strings with prefixes in Python, especially with Python 2 vs 3. Question: would you have a rule of thumb to remember the different types of strings with