Python/Python for Linux

[Python] Linux에서 python 실행파일 만들기

Pydole 2019. 3. 27. 10:59


python version : 2.7.5



# vi pythontest.py      // 파일생성 및 내용추가 후 저장



 #!/usr/bin/python


 print 'hello world!'

 





# chmod +x pythontest.py      //  실행권한 부여


# ./pythontest.py                   // 파일 실행

hello world!