-1
저는 PHP Eclipse를 사용하고 있으며 Python 용 Eclipse를 구성했습니다. 내가 Eclipse에서 python 스크립트를 실행할 수 있습니다. 내 문제는 이클립스에서 파이썬 파일 .exe
을 실행하는 방법입니다? Eclipse에서 Python 파일의 pdftotext.exe
을 실행하고 싶습니다. 명령 프롬프트에서이 python 파일을 실행할 수 있습니다.php eclipse에서 exe 파일을 실행 하시겠습니까?
from subprocess import call
import csv
call(["pdftotext.exe","-f", "2", "-l", "2","sample.pdf"])
lines = open('samplet.txt').readlines()
open('newfile.txt', 'w').writelines(lines[40:-1])
txt_file = r"newfile.txt"
csv_file = r"mycsv.csv"
in_txt = csv.reader(open(txt_file, "rb"), delimiter = ' ')
out_csv = csv.writer(open(csv_file, 'wb'))
out_csv.writerows(in_txt)
감사합니다. . – devuser