0
How to convert inputed string into raw string.
Like this code, Input = input() #I have to convert Input string into raw string print(Input)
2 ответов
+ 1
Did you mean str(input)
+ 1
A Python 3 raw string is a normal string, prefixed with a r or R. This treats characters such as backslash ('\') as a literal character. This also means that this character will not be treated as a escape character.
However, internally there's no differences between raw and normal strings...
Unlike Python 2, there's no need for a raw_input function ;)