Closed xueli12 closed 7 months ago
def select_file(b): selected_file = os.path.basename(path_widget.value) #<----新增這行 drive_dir.append(path_widget.value)
# clear_output()
print('File selected,please continue to select more or execute next cell')
print(f'已选择文件 "{selected_file}",可以继续选择或执行下个单元格') #<----修改這行
ChatGPT給的方法 這樣可以大概知道選擇的文件是什麼
感谢 可以了!
在选择多个文件时,光看下面的提示,不知道选择了哪个文件。 有时候选错了,想删除其中一个。