|
self.filename = tkFileDialog.asksaveasfilename(title="set headfiles path",
initialdir=".",
filetypes=[("","*.txt")],
defaultextension=".txt")
fc = open("thepath.txt",'w+')
fc.write(self.pathdata)
看到写进thepath.txt中的路径是E:/file/workspace/python/Tk_test,为啥这里的路径是“/”,而用os.path.join()方法拼接路径后变成了E:/file/workspace/python/Tk_test\a.c,完全无语啊?这看起来怎么这么别扭[s:烦] |
|