GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.tutorialsteacher.com — Python Sys Module Python - sys ModuleThe sys module provides functions and variables used to manipulate different parts of the Python runtime environment. You will learn some of the important features of this module here. sys.argv
Here is a Python script (test.py) consuming two arguments from the command line. test.py This script is executed from command line as follows: >>> C:\python36> python test.py Python C# JavaYou entered: Python C# Java Above, sys.exitThis causes the script to exit back to either the Python console or the command prompt. This is generally used to safely exit from the program in case of generation of an exception. sys.maxsizeReturns the largest integer a variable can take. sys.pathThis is an environment variable that is a search path for all Python modules. sys.versionThis attribute displays a string containing the version number of the current Python interpreter. Learn more about the sys module in Python docs. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |