说明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.

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

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/11244366.html