def creating_folder_for_csv_files(cwd):
try:
os.makedirs(cwd+'\\migration_data\\trade')
except os.error, e:
print "Could not create the destination folder for CSV files"
# end of first try/except block
try:
os.makedirs(cwd+'\\migration_data\\voucher')
except os.error, e:
print "Could not create the destination folder for CSV files"
在我的代码中,第一个try/except块起作用,但第二个不起作用。怎么了?在
voucher
可能已经存在。在相关问题 更多 >
编程相关推荐