使用Python3,寻找正确方向的微调,因为原始输入的行为不像我想象的那样。在
self.softwareOptions = {'1': "\X", '2': "\Y", '3':"\Z"}
self.sourceSoftware=r"\\Cdc1\cdc\Visual Studio 2015\Projects\WPF 2015 Projects"
self.sourceappend=r"\JCOutput\Release"
def BuildSourcePath(self):
return os.path.join(self.sourceSoftware , self.selectedSoftware, self.sourceAppend)
在程序的另一个点,用户被询问输入1、2、3以附加适当的路径。但是,输出总是在\V处切断路径,因此最后得到\cdc1\cdc\JCOutput\Release
必须使用相对路径:
相关问题 更多 >
编程相关推荐