<分区>
def iglob(pathname, *, recursive=False):
"""Return an iterator which yields the paths matching a pathname pattern.
The pattern may contain simple shell-style wildcards a la
fnmatch. However, unlike fnmatch, filenames starting with a
dot are special cases that are not matched by '*' and '?'
patterns.
If recursive is true, the pattern '**' will match any files and
zero or more directories and subdirectories.
"""
it = _iglob(pathname, recursive)
if recursive and _isrecursive(pathname):
s = next(it) # skip empty string
assert not s
return it
当我在python3.5.1浏览glob的代码时,这里定义的函数,为什么函数参数列表中有一个*。如果我将三个参数传递给这个引发 TypeError 的函数,* 的作用是什么?先谢谢了。