python标准库之fnmatch,dis,timeit
fnmatch
一种unix shell-style的文件名检查方式,在windows下也可以使用。
Pattern | Meaning |
---|---|
* | matches everything |
? | matches any single character |
[seq] | matches any character in seq |
[!seq] | matches any character not in seq |
timeit
(通过百万次运行,从而区分出程序间细微的时间差别)
dis
dis可以用来查看一个代码块所对应的python字节码