ipython 20151218

try: … except: … else: … finally:

python web开发:

架构:flask

pip install flask

from flask import Flask

app = Flask(__name__)

@app.route(‘/’)

def helloword():

return ‘Hello World’

if __name__ = ‘__main__’:

app.run(‘127.0.0.1’,234) #ip,port

flask.extension, 后台管理flask-admin(默认模板),模板jinjia

flask-alchemy

配置flask后台管理系统

等同于scp: python -mSimpleHTTPServer port

request(website)  测试

 

map,reduce,filter

collection.defaultdict

itertools.product,   itertools.combination

unittest testcase

 

邓梁:maven ppt