说明os,sys模块有什么不同

 

官方解释:

os: This module provides a portable way of usingoperating system dependent functionality.

翻译:提供一种方便的使用操作系统函数的方法。

sys:This module provides access to some variablesused or maintained by the interpreter and to functions that interact stronglywith the interpreter.

翻译:提供访问由解释器使用或维护的变量和在与解释器交互使用到的函数。

 

posted @ 2019-07-25 15:07  anobscureretreat  阅读(160)  评论(0编辑  收藏  举报