executing functions from windows console - python -


i have implemented logic through python functions , looking way calling functions more efficiently. there way calling these functions windows command prompt or python cmd below?

python function:

def logic1(args)     ... 

want call function this:

logic1(args) 

import file in python console this:

from my_file.py import * 

or

from my_file.py import name1, name2 ... 

now can use these in python console. out same importing files.

for calling functions in windows prompt need separate each function own file , use py2exe convert them executables. may overhead of work though, depending on want achieve.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -