Python
lichengtongxiazai
这个作者很懒,什么都没留下…
展开
-
Python中if-else语句的多种写法
a, b, c = 1, 2, 3 1.常规 if a>b: c = a else: c = b 2.表达式 c = a if a>b else b 3.二维列表 c = [b,a][a>b] 4.传说是源自某个黑客 c = (a>b and [a] or [b])[0]转载 2014-03-20 11:07:17 · 11641 阅读 · 0 评论 -
Protocol Buffer Basics: Python
https://developers.google.com/protocol-buffers/docs/pythontutorial protoc -I=$SRC_DIR --python_out=$DST_DIR $SRC_DIR/addressbook.proto转载 2014-04-03 16:38:28 · 602 阅读 · 0 评论 -
uwsgi安装和测试
wget http://projects.unbit.it/downloads/uwsgi-latest.tar.gz tar zxvf uwsgi-latest.tar.gz cd make转载 2014-05-15 15:08:32 · 6413 阅读 · 0 评论