What does the sys module do in python?
and what is sys.argv?
Jump to Post
Maybe a little example will help ...
import sys args = sys.argv print(args) print( "Source file: %s" % args ) # use any of these arguments in your code print( "Argument one: %s" % args ) print( "Argument two: %s" % args ) """ my output after …
All 9 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.