D
D
Drjabaka2015-06-25 11:29:14
Python
Drjabaka, 2015-06-25 11:29:14

How to pass parameters to python executable from terminal in ubuntu?

Hey! You need to pass parameters (keys, etc.) from the terminal, the question is how such a script is written?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ryaboshapko, 2015-06-25
@Drjabaka

Either argparse (if there are many different keys), or sys.argv if there are only one or two, or argparse is not enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question