What are the possible return values from the following command?
import sys
print sys.platform
I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)
cross-platformpython
What are the possible return values from the following command?
import sys
print sys.platform
I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)
Best Solution
(*) Prior to Python 3.3, the value for any Linux version is always
linux2
; after, it islinux
.