Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
[python] os.startfile Windows 특정 프로그램을 실행하는 방법 본문
[python] os.startfile Windows 특정 프로그램을 실행하는 방법
Windows를 사용하는 경우 Explorer에서 파일을 두 번 클릭하거나 DOS "start"명령에 대한 인수로 파일 이름을 지정하는 것과 같은 역할을합니다.확장명과 관련된 응용 프로그램이있는 경우 해당 파일이 열립니다 .
filepath = 'test.txt' import os os.startfile(filepath)예:
import os os.startfile('test.txt')메모장이 .txt 파일과 연결된 경우 textfile.txt가 메모장과 함께 열립니다.
'랭귀지 > python' 카테고리의 다른 글
판다(pandas)를 사용하여 현재 시간을 얻는 방법 (0) | 2018.11.08 |
---|---|
How to check the existence of a row in SQLite with Python? (0) | 2018.11.05 |
파이썬 exe파일 만들기 pyinstaller (0) | 2018.11.03 |
python 주식 호가로 구매하기 위해 코스닥 코스피 함수 (0) | 2018.11.02 |
python 문자열 앞 0으로 채우기 zfill() (0) | 2018.11.01 |
Comments