python专题sys模块

snowbirdcn 27 0 PDF 2020-12-23 05:12:11

一 前言 本篇内容是关于sys模块的经常使用的方法。阅读本篇,读者将更好的掌握,拓展视野! 欢迎关注公众号:知识追寻者 知识追寻者(Inheriting the spirit of open source, Spreading technology knowledge;) 二sys模块 sys模块用于提供对python解释器相关的操作,常用函数如下 sys.argv 传递到Python脚本的命令行参数列表; sys.executable 返回Python解释器所在的路径; sys.platform 返回操作系统平台名称; sys.stdout 标准输出 sys.stdin 标准输

用户评论
请输入评论内容
评分:
暂无评论