0

i have a script wich should open a file: with open('C:\Users\delta\Desktop\qwerty\file.txt') as f: print(f.read)

When i launch it, i get an error: with open('C:\Users\delta\Desktop\qwerty\file.txt') as f: ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

I searched how to ignore special constructions but wasn't able to find anything

ieurau
  • 1
  • 2

0 Answers0