What does the sys module do in python?
and what is sys.argv?
mahela007
6
Posting Whiz in Training
Recommended Answers
Jump to PostMaybe a little example will help ...
import sys args = sys.argv print(args) print( "Source file: %s" % args[0] ) # use any of these arguments in your code print( "Argument one: %s" % args[1] ) print( "Argument two: %s" % args[2] ) """ my output after …
Jump to PostIt allows your program to launch other programs and communicate with them.
All 9 Replies
Gribouillis
1,391
Programming Explorer
Team Colleague
mahela007
6
Posting Whiz in Training

iamthwee
scru
commented:
You're a big meanie!
+6
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
mahela007
commented:
A short ,clear post. .I deal for forums
+1
mahela007
6
Posting Whiz in Training
Gribouillis
1,391
Programming Explorer
Team Colleague
mahela007
6
Posting Whiz in Training
Gribouillis
1,391
Programming Explorer
Team Colleague
mahela007
commented:
thanks..
+1
mahela007
6
Posting Whiz in Training
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.