0

I want to run a python script with an argument, like

import sys
src_name = sys.argv[1]
print "the argument is " + src_name

but I got the following error:

    print "the argument is " + src_name
                       ^
SyntaxError: invalid syntax

how to deal with it? thanks!

lily
  • 308
  • 3
  • 10

0 Answers0