Python: Afficher le nom et les informations de la plateforme

Author:

 module
{filelink=16863}

import sys
 
print sys.platform,"=> ",
if sys.platform == "win32":
    import ntpath
    pathmodule = ntpath
elif sys.platform == "mac":
    import macpath
    pathmodule = macpath
else:
    import posixpath
    pathmodule = posixpath
 
print pathmodule