String.py

>>> path = r'C:\new\text.dat' >>> path 'C:\\new\\text.dat' >>> print(path) C:\new\text.dat >>> len(path) 15 # Show as Python code # User-friendly format # String length
In fact, Python itself sometimes uses this doubling scheme when it prints strings with embedded backslashes

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.