Например, в этом функция ниже:
Код: Выделить всё
def function(arg1, arg2):
print(arg1 * arg2)
Код: Выделить всё
% python3 pythonscript.py function arg1 arg2
Подробнее здесь: https://stackoverflow.com/questions/787 ... -arguments
Код: Выделить всё
def function(arg1, arg2):
print(arg1 * arg2)
Код: Выделить всё
% python3 pythonscript.py function arg1 arg2