terminal (interactive) 입력여부인지 확인하기


환경 : windows 7 32bit, python 2.7.8

         ubuntu 12.04 LTS, python 2.7.3



참조 : http://stackoverflow.com/a/1285045

         http://stackoverflow.com/a/699446


         http://www.popmartian.com/tipsntricks/2011/07/25/how-to-detect-stdin-with-python/



** windows IDLE 환경.




** Ubuntu 12.04 LTS, terminal 환경.
















Posted by 자유프로그램