# 技巧

# 显示包目录

> import sys
> print '\n'.join(sys.path)

/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
1
2
3
4
5
6
7
8
9
10

更多参考文章 How does python find packages? (opens new window)

# 秒建http服务器

python -m SimpleHTTPServer 8080
1
更新时间: 9/14/2021, 6:37:14 PM