1. 首页
  2. 数据库
  3. 其它
  4. py中的目录与文件判别代码

py中的目录与文件判别代码

上传者: 2020-12-30 15:16:58上传 PDF文件 19.83KB 热度 4次
>>> import os 导入模块 >>> os.listdir(“d:\\python25”) 列出所有目录和文件 [‘w9xpopen.exe’, ‘README.txt’, ‘NEWS.txt’, ‘LICENSE.txt’, ‘python.exe’, ‘pythonw.exe’, ‘Lib’, ‘DLLs’, ‘include’, ‘libs’, ‘tcl’, ‘Tools’, ‘Doc’, ‘odbchelper.py’, ‘odbchelper.pyc’, ‘test.log’, ‘sqlConnection.py’, ‘
下载地址
用户评论