‘.‘ is not recognized as an internal or external command

python在windows的Git Bash中执行如下代码时

import os
os.system('./venv/*/python -V')

报错如下:

'.' is not recognized as an internal or external command,
operable program or batch file.
 

解决:改成Windows风格的路径即可

import os
os.system('venv\\Scripts\\python -V')

你可能感兴趣的:(python,数学建模,java)