MkDocs: Deploy your Markdown documents on GitHub Pages
MkDocs is a static site generator that builds modern webpages based on your Markdown documents and a simple YAML file.
MkDocs is a static site generator that builds modern webpages based on your Markdown documents and a simple YAML file.
Python 裡的所有東西都是 object function 也是 所以你可以對 function 做任何跟 object 一樣的事 例如把一個 function 當成參數丟給另一個 function 當然也可以 decorate class 不帶參數的 decorator 第一層 def 接收 func 第二層 def 接收 func 的 *args, **kwargs 通常意義下的 decorator 是把 func(就是 something_1、something_2)丟給 decorator function 做一些額外的動作 然後回傳該 func 原本的 return 並不操作 func 本身 如果要操作 func 本身 例如幫 func 增加一個 attribute 請參考下下面的例子 def func_wrapper(func):… Read More
把部分 models / tables 獨立到一台資料庫
elasticsearch-dsl 就是官方發佈的一套用來操作 Query DSL 的 Python package,用起來有點像 Django 的 ORM。
Elasticsearch is a schemaless, document-oriented search engine, has a bunch of powerful quering APIs. It's also a great NoSQL database.