Python related module learning 1 Process file name module Glob

xiaoxiao2021-03-06  82

The ADSL of the home cannot be online, and open the downloaded Python e-book "OREILLY - Learning Python". The English version of the hard scide browsing. I saw the file operation related module that said Python belt, the Glob module feels better: first to see basic information: >>> import glob >> DIR (Glob) ['__ all__', '__builtins__', '__doc__', '__file__', 'fnmatch', 'glob', 'glob1', 'HAS_Magic', 'Magic_Check', 'OS', 'RE'] >>> Help (Glob) Help ON Module Glob:

Name Glob - FileName Globbing Utility.

FILE D: /PYTHON 24/lib/glob.py

Functions Glob (Pathname) Return A List of paths Matching a pathname pattern. The Pattern May Contain Simple Shell-Style Wildcards a la fnmatch.

转载请注明原文地址:https://www.9cbs.com/read-104368.html

New Post(0)