最简单的cmd命令行取得系统路径和python的安装路径(适用于winxp.win7和win10)

@echo off
::pip install selenium
python -c"import sys;print(sys.prefix)" >temp.txt
for /f %%i in (temp.txt) do set PythonPath=%%i
echo.Python路径:%PythonPath%
echo.SYSTEM路径:%systemroot%\system32

del temp.txt
pause

猜你喜欢

转载自www.cnblogs.com/dengpeiyou/p/9251441.html
今日推荐