import subprocess 


def get_build_version():

out = subprocess.Popen('ls -al', shell=True, stdout=subprocess.PIPE).stdout 

return out.readline()


출처: http://python.kr/viewtopic.php?t=25176





import popen2


def get_build_version():

r, w, e = popen2.popen3('adb devices')

return r.readlines()

'<프로그래밍> > ___Python' 카테고리의 다른 글

python 명령행 인자 받기  (0) 2013.10.29
python idle 테마 설정  (0) 2013.10.15
python float을 str로 치환  (0) 2013.10.11
python 시간 다루기  (0) 2013.10.11
python sleep  (0) 2013.10.10
Posted by JinnyDown
,