码迷,mamicode.com
首页 > 其他好文 > 详细

sys 模块

时间:2019-11-10 19:04:25      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:nbsp   char   win   col   for   win32   orm   day   arm   

与python解释器进行交互

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

运行结果如下

1 sys.argv is>>> [E:/PycharmProjects/untitled/day4/sys 模块.py]
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>>> [E:\\PycharmProjects\\untitled\\day4, E:\\PycharmProjects\\untitled, E:\\Python38\\python38.zip, E:\\Python38\\DLLs, E:\\Python38\\lib, E:\\Python38, E:\\PycharmProjects\\untitled\\venv, E:\\PycharmProjects\\untitled\\venv\\lib\\site-packages, E:\\PycharmProjects\\untitled\\venv\\lib\\site-packages\\setuptools-40.8.0-py3.8.egg, E:\\PycharmProjects\\untitled\\venv\\lib\\site-packages\\pip-19.0.3-py3.8.egg]
4 sys.platform is>>> win32

 

sys 模块

标签:nbsp   char   win   col   for   win32   orm   day   arm   

原文地址:https://www.cnblogs.com/fly10086/p/11831196.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!