部分代碼如下:def updateModel(): import win32com.client import os current_path = os.getcwd() fileList = os.listdir(current_path) for file in fileList: if file.endswith('stp'): os.remove
file_names = [file for file in os.listdir(folder_path) if file.endswith('.xls') or file.endswith('.xlsx')] print(file_names[0]) print(len(file_names)) filepath= [[[] for i in range(1)]