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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -