Os -name modülü

  |   Kaynak

#!usr/bin/env python

-- coding:utf-8 --

import os
if os.name=="posix":
print os.name
if os.name=="nt":
print os.name
Comments powered by Disqus