实现一个功能,即类似于PyCharm的打开于Explorer (打开文件路径并选中)
import os
file = 'test.npy'
file = os.path.realpath(file)
print(file)
os.system(f'explorer /select, {file}')
原理上还是调用系统功能
实现一个功能,即类似于PyCharm的打开于Explorer (打开文件路径并选中)
import os
file = 'test.npy'
file = os.path.realpath(file)
print(file)
os.system(f'explorer /select, {file}')
原理上还是调用系统功能