-2

I want to assing a path to a variable a: a = "D:\misc\testsets\Real"

How can i omit the \t metacharacter without changing the folder name?

2 Answers2

0

Use raw strings:

a = r"D:\misc\testsets\Real"
ruohola
  • 21,987
  • 6
  • 62
  • 97
0

Try this:

  • r denotes raw string.
a = r"D:\misc\testsets\Real"
Bibhav
  • 1,579
  • 1
  • 5
  • 18