看板 Python 關於我們 聯絡資訊
$pydoc glob FUNCTIONS glob(pathname) Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. iglob(pathname) Return a list of paths matching a pathname pattern. The pattern may contain simple shell-style wildcards a la fnmatch. 問題 glob跟iglob有差嗎? a la fnmatch 是什麼意思? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.102.254
linmic:a la是法文,fnmatch 是 unix filename pattern matching 09/08 11:04
linmic:意思就是說 [] 裡面可以用簡單的通配/用符號,ex: [/blah*] 09/08 11:05
linmic:iglob跟glob唯一的差異應該是 case ignoring. 09/08 11:09
linmic:iglob[case ignoring], glob[case sensitive] . 09/08 11:09
aquarianboy:我記得i好像是insensitive,反正就不分大小寫就是 :) 09/08 11:11
jlovet:好奇怪喔,那他文件為什麼不要寫清楚 09/08 13:13