sys 妯″潡

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sys 妯″潡相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/nbsp' title='nbsp'>nbsp   char   win   col   for   win32   orm   day   arm   

涓巔ython瑙i噴鍣ㄨ繘琛屼氦浜?/p>

 1 import sys
 2 
 3 print(鈥?/span>sys.argv is>>>鈥?/span>,sys.argv)
 4 
 5 print(鈥?/span>sys.version is>>>鈥?/span>,sys.version)
 6 
 7 print(鈥?/span>sys.path is>>>鈥?/span>,sys.path)
 8 
 9 print(鈥?/span>sys.platform is>>>鈥?/span>,sys.platform)
10 sys.exit()

杩愯缁撴灉濡備笅

1 sys.argv is>>> [鈥?/span>E:/PycharmProjects/untitled/day4/sys 妯″潡.py鈥?/span>]
2 sys.version is>>> 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:37:50) [MSC v.1916 64 bit (AMD64)]
3 sys.path is>>> [鈥?/span>E:\PycharmProjects\untitled\day4鈥?/span>, 鈥?/span>E:\PycharmProjects\untitled鈥?/span>, 鈥?/span>E:\Python38\python38.zip鈥?/span>, 鈥?/span>E:\Python38\DLLs鈥?/span>, 鈥?/span>E:\Python38\lib鈥?/span>, 鈥?/span>E:\Python38鈥?/span>, 鈥?/span>E:\PycharmProjects\untitled\venv鈥?/span>, 鈥?/span>E:\PycharmProjects\untitled\venv\lib\site-packages鈥?/span>, 鈥?/span>E:\PycharmProjects\untitled\venv\lib\site-packages\setuptools-40.8.0-py3.8.egg鈥?/span>, 鈥?/span>E:\PycharmProjects\untitled\venv\lib\site-packages\pip-19.0.3-py3.8.egg鈥?/span>]
4 sys.platform is>>> win32

 

以上是关于sys 妯″潡的主要内容,如果未能解决你的问题,请参考以下文章

os妯″潡

Ansible甯哥敤妯″潡-yum妯″潡

re 妯″潡銆乼yping 妯″潡銆乧ollections 妯″潡

datetime妯″潡

鏃堕棿time妯″潡

python瀛︿範--bisect妯″潡