Advertisements
Advertisements
प्रश्न
What is the purpose of the sys, os, getopt module in Python? Explain.
थोडक्यात उत्तर
उत्तर
Python’s sys module:
This module provides access to some variables used by the interpreter and to functions that interact strongly with the interpreter.
Python’s OS module:
- The OS module in Python provides a way of using operating system-dependent functionality.
- The functions that the OS module allows you to interface with the Windows operating system where Python is running on.
Python getopt module:
- The getopt module of Python helps us to parse (split) command-line options and arguments.
- This module provides two functions to enable command-line argument parsing.
shaalaa.com
Python Program to Import C++
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
The module which allows you to interface with the Windows operating system is ______
What is the use of modules?
Identify the module, operator, definition name for the following welcome.display()?
What is sys.argv? What does it contain?
Write the syntax for getopt() and explain its arguments and return values?