Python
Category: /knowledge /developmentTags: development
PEP 8
Cookbook
auto execute scripts from shell
在python代码第一行加上:
#!/usr/bin/env python
chmod +x your_code.py
Start a simple HTTP server
Sometimes we need to start a local server quickly for testing purpose. We can use python package directly.
python -m SimpleHTTPServer 8000