示例如下
>>> import sys
>>> sys.version
'3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)]'
>>> sys
>>> sys.path
['', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\Lib\\idlelib', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\python36.zip', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\DLLs', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\lib', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32', 'C:\\Users\\HP\\AppData\\Roaming\\Python\\Python36\\site-packages', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\win32', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\win32\\lib', 'C:\\Users\\HP\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\site-packages\\Pythonwin']
>>>