py规范:

    1. 头加: #-*- coding: utf-8 -*-
    2. 非 ascii 字符的字符串, 要u前缀
    3. import 顺序: 标准库、第三方库、项目自身模块

    依赖包安装

    1. pip freeze > ./requirements.txt
    2. pip install -r requirements.txt

    不进入客户端执行

    1. python -c 'import math ; print int(math.log(45) * 20)'

    python 当前目录下启动一个 web 文件服务器

    1. # python2
    2. python -m SimpleHTTPServer 8000
    3. # python3
    4. python3 -m http.server 8000