Answers for "how to get an argument in python"

0

python get args

import sys

print(sys.argv)
Posted by: Guest on February-23-2021
9

python arguments

import sys

print ("the script has the name %s" % (sys.argv[0])
Posted by: Guest on November-18-2019

Code answers related to "how to get an argument in python"

Python Answers by Framework

Browse Popular Code Answers by Language