我需要看一下,看看我是在Windows,Unix等吗?
python cross-platform platform-specific
我想找出一个人在Python中的操作系统.我知道我总能做到这一点:
try: os.system(unixonlycommand) except: os.system(windowsonlycommand)
但还有另一种方法吗?这个或那个特殊的模块?
python operating-system python-3.x
python ×2
cross-platform ×1
operating-system ×1
platform-specific ×1
python-3.x ×1