Skip to content

How to run cmd line commands in Python?

import os

os.system("ma Commande")


os.system("cd Documents")
See also  Python code snippet - How to pop things out of list ?

Leave a Reply

Your email address will not be published. Required fields are marked *

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