python模块
miaoqinian
这个作者很懒,什么都没留下…
展开
-
(python) os模块的用法
Python的os模块包含普遍的操作系统功能。官方文档这么未经介绍它:os: This module provides a portable way of using operating system dependent functionality.这个模块提供了一种方便的使用操作系统函数的方法。os模块支持的方法有很多,但常用的如下:1、os.listdir() 列出指定目录的文件2、os.pa...原创 2018-06-05 19:54:26 · 356 阅读 · 0 评论 -
(python)sys模块
sys模块: This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter.这个模块提供了对解释器使用或维护的一些变量的访问,以及与解释器紧密交互的函数。1、sys.arg...原创 2018-06-05 21:34:50 · 571 阅读 · 0 评论