python 다른 파일 추가

e.t.c 2015. 8. 30. 21:25


파일 추가할때 아래와같이 하면됌..

 

file.name 이라는 파일 안에 file_ 변수 출력.

 

 

#!/usr/bin/python

 

# -*- coding: utf-8 -*-

import sys,os

 

execfile("../etc/file.name")

print(file_)

'e.t.c' 카테고리의 다른 글

마메론 카일레라 개인 서버 열기  (0) 2015.10.30
파워비츠 닥터드레 AS 후기!  (0) 2015.08.30
python port 체크  (0) 2015.08.30
python crontab 안될때  (0) 2015.08.30
아웃룩 오류 코드  (0) 2015.08.27
Posted by pysany
,