ValueError: invalid \x escape:
问题 ValueError: invalid \x escape: File "SConstruct", line 49: execfile("hosts.cfg") I'm completely stumped with this one guys... If I print right before line 49, I can see the output. On the very first line of "hosts.cfg" I put a second print statement which is never executed. 回答1: Even on Windows, forward slashes should work for directory names, so you could standardize on those: "libpath" : [".", "../xlib", "../tools", "../info"], Or use raw strings, as @Adam Rosenfield already said in a