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 …Run Code Online (Sandbox Code Playgroud) “可变长度关系”部分让我感到困惑。
这个例子:
MATCH (martin { name: 'Charlie Sheen' })-[:ACTED_IN*1..3]-(movie:Movie)
RETURN movie.title
返回 3 行,其中重复出现“美国总统”。
如果我将 3 更改为 2,则仅返回一行“华尔街”。这是为什么?minHops该部分中的和是什么意思maxHops?