Skip to content

How to run cmd line commands in Python?

import os

os.system("ma Commande")

#Exemple:

os.system("cd Documents")
See also  Python code snippet - How to make my jupyter prin full array?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.