实现一个功能,即类似于PyCharm的打开于Explorer (打开文件路径并选中)
import osfile = 'test.npy'file = os.path.realpath(file)print(file)os.system(f'explorer /select, {file}')
原理上还是调用系统功能
如果觉得《Python打开系统资源管理器并选中文件》对你有帮助,请点赞、收藏,并留下你的观点哦!
时间:2021-05-05 22:49:33
实现一个功能,即类似于PyCharm的打开于Explorer (打开文件路径并选中)
import osfile = 'test.npy'file = os.path.realpath(file)print(file)os.system(f'explorer /select, {file}')
原理上还是调用系统功能
如果觉得《Python打开系统资源管理器并选中文件》对你有帮助,请点赞、收藏,并留下你的观点哦!