-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
  • 19,113
  • 6
  • 51
  • 82
0

Try this:

  • r denotes raw string.
a = r"D:\misc\testsets\Real"
Bibhav
  • 789
  • 3
  • 15