在Syatem中的所有目录中搜索Python.exe文件并获取路径 [英] search Python.exe file in all the Directory in Syatem and Get the Path

查看:271
本文介绍了在Syatem中的所有目录中搜索Python.exe文件并获取路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi



如何搜索系统中的python.exe文件并获取整个系统中的路径..

解决方案

搜索很简单,但这种方法适得其反并且不可靠。搜索文件需要时间,结果可能不明确。您可能找不到任何东西,但它可能是值得的:搜索可能找到错误的Python版本,因为系统有多个(简单;随着Python的流行,许多不同的产品可以包含它)。



不要用这个错误的步骤破坏一切,不要这样做!相反,使用某些Python文件开发系统配置,或者将其提供给您的产品,或同时执行两者。



-SA

hi

how to search the python.exe file in the system and get the path in entire system..

解决方案

Search is simple enough, but this approach is counter-productive and unreliable. Searching for the file will take time, and the result can be ambiguous. You may not find anything, but it could be worth: the search could find wrong version of Python, because the system has more than one (easy; with the Python popularity, many different product can include it).

Don't spoil everything with this wrong step, don't do it! Instead, develop configuration of your system with certain Python file(s), or supply it with your product, or do both.

—SA


这篇关于在Syatem中的所有目录中搜索Python.exe文件并获取路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆