sys.argv command line argument list, the first element is the program itself path Sys.exit (n) exits the program, exit normally exits (0) Sys.version Gets the version information of the Python interpreter SYS.M Axint the largest int value Sys.path returns the search path for the module, initialized with the value of the PYTHONPATH environment variable Sys.platform returns the operating system platform name Sys.stdout.write ('Please :')#standard output, the example of a progress bar, note, in the PY3, you can use print insteadval = Sys.stdin.readline () [:-1]#Standard inputSys.getrecursionlimit ()#get maximum number of recursive layersSys.setrecursionlimit (1200)#set maximum number of recursive layersSys.getdefaultencoding ()#Get interpreter default encodingSys.getfilesystemencoding#get the default encoding for memory data stored in a file
Import Sys
>>>sys.argv["']>>>sys.version'3.6.4 | Anaconda, inc.| (Default, Jan 16 2018, 10:22:32) [MSC v.1900 bit (AMD64)]'>>>sys.maxsize9223372036854775807>>>sys.path["','E:\\anaconda3\\python36.zip','E:\\anaconda3\\dlls','E:\\anaconda3\\lib','E:\\anaconda3','e:\\anaconda3\\lib\\site-packages','E:\\anaconda3\\lib\\site-packages\\win32','E:\\anaconda3\\lib\\site-packages\\win32\\lib','E:\\anaconda3\\lib\\site-packages\\pythonwin']>>>Sys.platform'Win32'>>>Sys.stdout<_io. Textiowrapper name='<stdout>'Mode='W'encoding='Utf-8'>>>> Sys.stdout.write ('Hey3') Hey34>>> Sys.stdout.write ('HEY3SDF') Hey3sdf7#This is the standard output .
python-Module-sys