PHP » PYTHON |
login |
register |
about
|
execfile('myfile.py') You can also use import myfile only for first time and reload(myfile) for successive call as described in python documentation. Example: myfile.py def foo(x,y): return x+y*4 a = 3 print 'here we go' Console: >>> execfile('myfile.py') here we go >>> a 3 >>> foo(4,5) 24 |
more
Recently updated
more
Most requested
|