问题
[WinError 123] The filename, directory name, or volume label syntax is incorrect

回答1:
Here in the path \f is decoded as ascii formfeed \x0c, hence the issue.
Use r in front of path as r"c:\\path\to\dir" to make it raw string.
来源:https://stackoverflow.com/questions/63868961/winerror-123-the-filename-directory-name-or-volume-label-syntax-is-incorrect