Separate "functions" from "complements" - Python 3

0
So, I'm doing an application in python 3 which is a terminal, but I do not know how to separate the words, type: Every programming language has a certain "function" before executing the code, such as Python's print .

This terminal will have a Link with Python , meaning you can write some python commands to run, like pip3

.

>

I wanted help to know how to do this, make the user type a command , and if this command is to write something on the screen , the text that the user typed and displayed on the screen .

My recent commands for the terminal:

output {text} // Digita um texto na tela
python-pip3get {module} //  Baixa modulos do pip3
sys-get {command(login(),version(),etc.)} // Pega infs do sistema
file-open {path} // Abre um arquivo para editar
file-edit {text} // Edita o texto de um arquivo
file-create {path} // Cria um arquivo
file-close // Sai do arquivo

Based on these commands I want to separate the functions from the add-ons ({text}) and pass them to their respective string (function & complement).

Please help me.

    
asked by anonymous 01.03.2018 / 01:25

0 answers