How to print special characters in Python - Kite
文章推薦指數: 80 %
a_string = "\nString\n" literal_string = repr(a_string) print(literal_string)
延伸文章資訊
- 1How To Index and Slice Strings in Python 3 | DigitalOcean
- 2How to print special characters in Python - Kite
a_string = "\nString\n" literal_string = repr(a_string) print(literal_string)
- 3Python Strings - W3Schools
You can display a string literal with the print() function: ... However, Python does not have a c...
- 4print string letter by letter python Code Example - code grepper
- 5Ways to print escape characters in Python - GeeksforGeeks
Ways to print escape characters in Python ... print ( "The string after resolving escape characte...