Dev. DA
  • 홈
  • 태그
  • Deep Learning
  • Python
    • 분류 전체보기
      • Data Science
        • Deep Learning
        • Machine Learning
        • Anomaly Dectection
        • DB+SQL
        • Python
        • Data Visualization
      • Programming
      • Shell & Command
      • Knowlege
  • 글작성
  • 방명록
  • 환경설정
  • 메뉴 닫기
subprocess 검색 결과
1 개의 검색 결과가 있습니다.
Data Science/Python

shell command within python

Here is a basic example of how to use the subprocess module to run an external commandUsing subprocess.runThe subprocess.run function is the recommended approach for most cases because it is simple and powerful.import subprocess# Command to be executedcommand = ["ls", "-l"] # Replace with your command and arguments# Run the commandresult = subprocess.run(command, capture_output=True, text=True)..

2024. 6. 21. 23:42
  • «
  • 1
  • »
반응형
반응형

전체 카테고리

  • 분류 전체보기
    • Data Science
      • Deep Learning
      • Machine Learning
      • Anomaly Dectection
      • DB+SQL
      • Python
      • Data Visualization
    • Programming
    • Shell & Command
    • Knowlege
반응형
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

블로그 인기글

태그

  • #딥러닝
  • #MySQL
  • #deep learning
  • #Data Visualization
  • #go
  • #이상탐지
  • #pytorch
  • #자연어처리
  • #pandas
  • #파이썬
  • #machine learning
  • #anomaly detection
  • #Python
  • #머신러닝
  • #SQL
더보기+

전체 방문자

오늘
어제
전체
Powered by Privatenote Copyright © Dev. DA All rights reserved. TistoryWhaleSkin3.4

티스토리툴바