Is there any way without typing r or 'double slash' to resolve this problem.because this two tricks change the type of file:
f = open('C:\Users\alireza\Desktop\exersices.python\p5.files\1.txt')
Error:
File "<ipython-input-1-243f8d6a931c>", line 1
f = open('C:\Users\alireza\Desktop\exersices.python\p5.files\1.txt')
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
/forward slash to refer to the path of the file in windows.r'...'literals or double backslashes would change the type of the file in any way. What makes you think it does?"sers\ali"in not a valid hexadecimal number.