Judge whether there is exist appointed Excel file, create it if not exist, otherwise delete and recreate it
:param filename:
:return:
https://www.cnblogs.com/vickey-wu/p/6735046.html
https://www.cnblogs.com/jhao/p/7243043.html
import os
outPutDirName = 'C:\\Users\\Elinker Electric 001\\Desktop\\ttt'
if not os.path.exists(outPutDirName):
os.makedirs(outPutDirName)
#结果:
D:\Pycharm\untitled\venv\Scripts\python.exe D:/Pycharm/untitled/zxzxzxzx.py
Process finished with exit code 0
结束在桌面生成ttt.文件夹