Pathlib 'normalizes' UNC paths with “$”
问题 On Python3.8, I'm trying to use pathlib to concatenate a string to a UNC path that's on a remote computer's C drive. It's weirdly inconsistent. For example: >>> remote = Path("\\\\remote\\", "C$\\Some\\Path") >>> remote WindowsPath('//remote//C$/Some/Path') >>> remote2 = Path(remote, "More") >>> remote2 WindowsPath('/remote/C$/Some/Path/More') Notice how the initial // is turned into / ? Put the initial path in one line though, and everything is fine: >>> remote = Path("\\\\remote\\C$\\Some\