python - How to type in arguments in the middle of the code? -


we can thing type in arguments:

from sys import argv script, argument_1, argument_2 = argv 

is possible type in arguments in middle of code, not in beginning?

i want smth same:

print "la-la-la" print "any string" # , here want program take file name argument work file 

have @ argparse python class command line parsing


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -