如何判断当前环境是Windows还是Unix?我想执行以下类似的代码。请提建议。
感谢您的所有帮助。
import os
if (os.getenv("windows"):
os.system(cmd/c ...)
if (os.getenv("unix")
os.system(sh shellscript.sh)
感谢您的所有帮助。