string prefix
h2> meaning
- u stands for unicode and can store Chinese characters.
- b for bytes, can not store Chinese.
- r represents raw and does not recognize escape characters.
- f format.
Use
h2>
print(r"tes\nt")
print(r"tes\nt")
div>
Read More:
- Syntax Error: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position resolution
- Python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3:
- python SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: trunca
- Solution of Unicode decodeerror -‘utf-8 ‘codec can’t decode byte 0xc4 in position 0 – invalid continuation byte
- The conversion between [Python] bytes and hex strings.
- Regular expressions filter special characters
- error: unclosed character literal (How to Fix)
- Translate() and maketrans() methods of string in Python
- In Java, int is converted to string, and zero is added before the number of bits is insufficient
- Modification scheme of binary files in dot matrix font library
- Solution to command line option syntax error. Type command /? For help
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Run Python file for the first time with eclipse / pydev: “UTF-8 ‘codec can’t decode byte 0xc4 in position
- Several methods of deleting all empty lines in text under Linux
- The use of Chinese characters in Qt and the solution to the “error C2001: newline in constant” problem
- Explanation of the function strip(), lstrip(), rstrip() in Python
- Error: the solution of “241” and “343” in program
- How to solve the problem of syntax error: (Unicode error)’unicodescape ‘codec can’t decode bytes in position 2-3: truncat
- C++ string substr()
- Texstudio prompts an error when compiling and viewing latex documents: package inputerror: Unicode character