顯示具有 python 標籤的文章。 顯示所有文章
顯示具有 python 標籤的文章。 顯示所有文章

2017年5月22日 星期一

筆記 - Pymongo指令

用Python操作Mongo時,常忘記一些指令,所以做下筆記,會持續更新。
# vals是1100時
coll.find({"vals":1100})
# or條件
coll.find({"$or":[ {"vals":1700}, {"vals":100}]})
# and條件
coll.find({"$and":[ {"vals":100}, {"vals":1100}]})
# artContent contains keyword
coll.find({"$and":[{"date.year":yearshow},{"date.month":monthShow},{"artContent": re.compile(keyword)}]})

Centos GUI Webserver 設定

新灌的一台Centos7可以做以下的設定 語系設定: - sudo localectl set-locale LC_CTYPE=zh_TW.UTF-8 修改ssh port - http://linux.vbird.org/linux_server/0310telne...