原创 mysql 好文收藏

http://blog.csdn.net/ithomer/article/details/5134201 http://www.cnblogs.com/yidianfeng/archive/2011/02/24/1964148.html

原创 flask 好文收集

flask http://www.cnblogs.com/vovlie/p/4178077.html http://www.pythondoc.com/flask-restful/second.html http://dormouseho

原创 實用文章收藏

1、mysql mysql-python 安裝方法 http://blog.csdn.net/dqatsh/article/details/2418663 http://54im.com/python/centos6-%E4%B8%8B%

原创 實現向 python 腳本中傳遞列表,字典參數

script.py import json from optparse import OptionParser def main():     log.init("/var/log/ansible_engine/ansible_engin

原创 python 線程池創建

http://www.cnblogs.com/coser/archive/2012/03/10/2389264.html

原创 leetcode Jump Game python答案

分析:只要元素的值爲0的那一步纔有可能無法到達頂端。但是,如果它前面的元素能夠跳過這個0,則仍然可以到達頂端。 相關算法:貪心算法(作者也在學習中) 代碼: class Solution:     # @param {integer[]}

原创 ansible安裝

安裝環境: CentOSLinux release 7.2.1511 (Core) 環境準備:已安裝 Python 2.7.5。 # uname -a Linux ansible 3.10.0-327.el7.x86_64 #1 SMP

原创 pip 安裝 mysql_python “EnvironmentError: mysql_config not found” 問題解決方法

錯誤: pip install MySQL-python You are using pip version 7.1.0, howeverversion 8.1.1 is available. You should consider u

原创 ansible 好文收集

python API http://docs.ansible.com/ansible/developing_api.html http://xiaorui.cc/2014/05/30/ansible-api%E7%9A%84runner

原创 leetcode Jump Game II 題解

逆推,從後往前開始。 每一次,都是尋找能到達本元素,同時與本元素距離最遠的元素的位置。但是以下程序超時,各位朋友看一下,如何優化以下。 class Solution:     # @param {integer[]} nums     #

原创 ansible tower 安裝方法

1、  下載blund 包,將其解壓。cd 到解壓後的目錄下。下載地址:https://releases.ansible.com/ansible-tower/setup-bundle/ 2、  ./config 數據庫,輸入登陸web 界

原创 ansible常見錯誤

1、祕鑰和playbook中寫的remoter_user不對應,即使外部指定了對應的用戶也不可以。 [root@ansible src]# ansible-playbook -u"centos" --private-key=/home

原创 ansible使用注意事項

1、默認情況下,首次登陸一臺服務器,系統會提示是否要記住對端的指紋,用ansible也會這樣,這樣會導致需要手工輸入yes或no,ansible 纔可以往下執行。如需避免這種情況,需要在 /etc/ansible/ansible.cfg

原创 centos 7 yum install mysql 安裝mariadb 後 mysql 無法啓動的解決方法

yum install mysql 顯示 mysql 安裝完成,但service mysql status, service mysql start 均提示失敗,數據庫也無法登陸。 [root@ansible flask_sqlalche

原创 flask 使用錯誤總結

1、發送請求時服務端報如下錯誤 Traceback (most recent call last):  File "/usr/lib/python2.7/site-packages/flask/app.py", line1475, in