I use print()
function to use like this:print("\")
and i get an exception. Tell me how to slove it. Thks
Asked
Active
Viewed 135 times
-1

hUwUtao
- 76
- 8
-
1Backslash is an escape character, so if you want a literal backslash just escape it: "\\". Otherwise your string is not a complete string: the second " is interpreted as being *part of the string* (and everything after it like the close paren is as well) rather than the delimiter. Which is why you get the error, you have an unterminated string. – Jared Smith Apr 12 '20 at 13:04