Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个文件模式(由 使用fnmatch),但可能会出现多个文件模式匹配同一个文件。如何通过验证模式来避免它?例如文件是 example.csv,模式是*.csv, example.csv, ex*.csv, ex*le.csv, example*。
fnmatch
*.csv
example.csv
ex*.csv
ex*le.csv
example*