When handling command-line arguments, I roughly know getopt will work, but have never used it before. The documents on some books seems not very informative, if read multiple arguments from the command line, is it right to use sys.argv[1], sys.argv[2], etc to assign the arguments to respective variable in the program?
Thanks!
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Gribouillis 1,391 Programming Explorer Team Colleague
pythonlearning 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.