Just use an absolute path when opening the filehandle for writing. import os.path save_path = 'C:/example/' name_of_file = raw_input("What ... ... <看更多>
myfile="/Users/tuesday/Desktop/Python/Recipes.zip" #Mac absolute path os.path.isfile(myfile) #check if Python ... Lets add one in, and then save the file. ... <看更多>