In [1]:
from pathlib import Path

In [2]:
p = Path(r'C:', 'new', 'test.txt')
p


Out[2]:
PosixPath('C:/new/test.txt')