Time of Update: 2017-01-06
標籤:pad clear tap beyond from auto ase 比較 擷取 1. 建立app在自己的工程項目目錄下輸入:python manage.py startapp
Time of Update: 2017-01-03
標籤:ace .com 部署 沒有 版本 運行 sys mpi imp 在其他版本的mysqldb裡面時間查詢有問題最後確定還是在 1.2.5
Time of Update: 2017-01-05
標籤:操作符 代碼 返回 rto 反轉 內建函數 eve man 功能 zip函數:它是python的內建函數,(與序列有關的內建函數有:sorted()、reversed()、enumerat
Time of Update: 2017-01-04
標籤:變數賦值 open art indicator 執行 全域變數 解析 bsp pre python的def語句實際上是一個可執行檔語句:當它啟動並執行時候,它會建立一個新的函數對象並將其賦
Time of Update: 2017-01-01
標籤:調用 編程 分代 模組 article 運行 對象 部分 可讀性 python中的if __name__ == ‘__main__‘ what hell is
Time of Update: 2017-01-01
標籤:繼承 __init__ .com alt class res 初始化順序 子類 effective 初始化超類的傳統方式,在子類的執行個體中調用超類的__init__()方法。但是傳統的方
Time of Update: 2016-12-30
標籤:urlencode 資料 res png 處理器 direct expires ups 發送 本節我們一起來看一下Cookie的使用。 為什麼要使用Cookie呢? Cookie,指某
Time of Update: 2016-12-30
標籤:div pre orm man 存在 mil rip 輸出 rom 1、strip()函數strip()是刪除‘()‘裡面的字元,當()為空白時,預設刪除空白符(包括‘\n‘,‘\r‘,‘
Time of Update: 2017-01-02
標籤:python 函數內部在迴圈中常用的range函數,如for i in range(10) print(i)這裡的range是一個python中的內建函數它的參數為start_value,stop_value,step_valuerange(start_value,stop_value,step_value)#start_value 開始值,若為0可直接不寫#stop_value
Time of Update: 2017-01-01
標籤:soft font put 知識 文檔 img 快速鍵 ignore remember 安裝外掛程式在Sublime
Time of Update: 2016-12-29
標籤:import sel alt 手動 ons doctype 校正 firebug phantomjs [本文出自天外歸雲的部落格園]前篇用webdriver+phantomjs實現無瀏覽器
Time of Update: 2016-12-29
標籤:tco www 發送post請求 data odi read encode pack print 1.
Time of Update: 2016-12-28
標籤:server pytho highlight vmm byte eem code position can python bytes 轉化成 string 會遇到如下錯誤:codec
Time of Update: 2016-12-28
標籤:tac run com blog over air import creat har couples = [ [‘jack‘, ‘ilena‘],
Time of Update: 2016-12-28
標籤:線上 代碼 system color nbsp 程式 工作 線程 主線程 os._exit()會直接將python程式終止,之後的所有代碼都不會繼續執行。sys.exit()會
Time of Update: 2016-12-29
str1 = 'abced'for i in range(-1, -len(str1), -1) + [None]: print str1[:i]s, t = 'abc', 'def'print zip(s, t)for i, t in enumerate(str1): print i, tprint isinstance('foo', str)import stringdef checkid(): alphas
Time of Update: 2017-01-06
django server之間通過remote user 相互調用,djangoremote首先,情境是這樣的:存在兩個django
Time of Update: 2017-01-04
用django建立一個項目,django建立項目首先你得安裝好python和django,然後配置好環境變數,安裝python就不說了,從配置環境變數開始1.配置環境變數 在我的電腦處點擊右鍵,或者開啟 控制台\系統和安全\系統 -> 左邊導覽列的“進階系統設定”->環境變數 -->然後你會看到下面這個介面 -> 點擊這個path,然後點編輯 然後找到C:\Python27檔案夾,將這個檔案夾添加進去。2.安裝django 開啟cmd,執行
Time of Update: 2016-12-28
python 替換 檔案夾下的 檔案名稱 及 檔案內容,樣本效果:1.替換某檔案夾下的 檔案夾及子檔案夾 的名稱 由OldStrDir 變為 NewStrDir;2.替換某檔案夾下的 檔案夾及子檔案夾 下 所有的檔案的名稱 由OldStrFile 變為 NewStrFile;3.替換某檔案夾下的 檔案夾及子檔案夾 下 所有的檔案的內容 由OldStrContent 變為 NewStrContent; 相應代碼:# -*- coding: UTF-8 -*-
Time of Update: 2016-12-29
python安裝numpy、scipy和matplotlib等whl包的方法,numpyscipy 最近裝了python和PyCharm開發環境,但是在安裝numpy和matplotlib等包時出現了問題,現總結一下在windows平台下的安裝方法。 由於現在找不到了工具包新版本的exe檔案,所以採用了whl格式檔案的安裝。本人事先安裝了python3.5.2,電腦是32位。 1、先安裝wheel,在cmd視窗下輸入: pip install wheel 2、下載工具包: