Time of Update: 2018-01-10
標籤:sele 事務 注入 value .com where port 服務 blog PyMySQL是在Python3.x版本中用於串連MySQL伺服器的一個庫,Python2中則使用MySQ
Time of Update: 2018-01-10
標籤:int stack out print utf-8 pre turn nbsp app # -*- coding:utf-8 -*-class&n
Time of Update: 2018-01-10
標籤:exception 調用 builder lis dsd build set sys col 使用 ProcessBuilder List<String>
Time of Update: 2018-01-10
標籤:none move 絕對值 argument lex eve ble color 解釋 函數 Built-in
Time of Update: 2018-01-10
標籤:body blog virt cal 環境變數設定 配置 ash pip 包管理 1.升級python包管理工具pippip install --upgrade
Time of Update: 2018-01-10
標籤:遇到 有序 gen china 存在 span 關係 變數 全域 函數進階命名空間namespace, 顧名思義, 就是存放名字的地方.舉例:若聲明變數 x = 1, 值1存放與記憶體中,
Time of Update: 2018-01-10
標籤:tail print queue 出隊 += 判斷 append out end # -*- coding:utf-8 -*-class Queue
Time of Update: 2018-01-10
標籤:訪問 一個 參數表 外部 內部類 不同 -- 共用 object 2.8 類的屬性2.9 類的方法3.0 類的內建方法2.8
Time of Update: 2018-01-11
Python day 9(1) 對執行個體動態綁定屬性和方法,pythonday一:未使用slots方法(都是在class定義完之後在class外部添加的):(1)動態綁定屬性 class Student(object): pass >>> s =
Time of Update: 2018-01-11
Python3.6新特性, 最新Python版本3.6.4 release at 2017-12-19 Python3.6新特性 vs Python3.5主要有:PEP 468,儲存關鍵字參數順序PEP 487,更簡單地定製類建立PEP 495,局部時間消歧PEP 498,文字字串格式化PEP 506,向標準庫添加一個秘密模組PEP 509,添加一個私人版本的字典PEP 515,在數字文字中底線PEP 519,添加檔案系統路徑協議PEP 520,儲存類屬性定義順序PEP 52
Time of Update: 2018-01-11
類和對象的建立過程(元類,__new__,__init__,__call__),__new____init__一、 type()1、建立類的兩種方式方式一class MyClass(object): def func(self,name): print(name)myc = MyClass()print(MyClass, type(MyClass))print(myc,
Time of Update: 2018-01-11
快取服務器,一、快取服務器介紹 NoSQL(NoSQL = Not Only SQL ),意即“不僅僅是SQL”,泛指非關係型的資料庫,隨著互連網web2.0網站的興起,傳統的關聯式資料庫在應付web2.0網站,特別是超大規模和高並發的SNS類型的web2.0純動態網站已經顯得力不從心,暴露了很多難以克服的問題,而非關係型的資料庫則由於其本身的特點得到了非常迅速的發展。NoSQL資料庫的產生就是為瞭解決大規模資料集合多重資料種類帶來的挑戰,尤其是大資料應用難題。二、NoSQL資料庫的四大分類2
Time of Update: 2018-01-10
Python 指令碼語言,python指令碼語言python 指令碼語言(python的命名起源於一個指令碼screenplay,每次運行都會使對話方塊逐字重複。由著名的“龜叔”Guido van
Time of Update: 2018-01-11
Flask學習筆記--資料庫(Python3.6),flaskpython3.6Python 資料庫架構 選擇資料庫架構的因素:項目結構搭建 application |____application web目錄 |____manage.py 指令碼資料 |____runserver.py 啟動伺服器 | |______init__.py 模組匯出檔案 | |____app.conf 設定檔 | |____models.py
Time of Update: 2018-01-10
python int對象的方法,pythonint對象方法1、求絕對值1 >>> a = -102 >>> a.__abs__()3 104 >>> abs(10)5 102、加法1 >>> a = 12 >>> a.__add__(1)3 24 >>> a + 15 23、按位與1 >>> a = 12 >>> a.__and__(0)3 04
Time of Update: 2018-01-11
flask---訊號,一、flask-訊號 Flask架構中的訊號基於blinkerflask-訊號的安裝 pip3 install blinker10個內建訊號1. 內建訊號 10個訊號: 2. request_started = _signals.signal('request-started') # 請求到來前執行 5.
Time of Update: 2018-01-10
008 了不起的分支與迴圈2,008分支assert 0.猜猜 (x < y and [x] or [y])[0] 實現什麼樣的功能? 若x<y為真,則返回x (參照兩邊為數的邏輯運算:A and B,若A為真,則返回B,反之,返回A A or B ,若A為真,則返回B,反之,返回A )(其中[X][0]表示列表中的第一個元素即X)
Time of Update: 2018-01-11
Python使用redis介紹,pythonredis介紹一、Redis的介紹 redis是業界主流的key-value nosql 資料庫之一。和Memcached類似,它支援儲存的value類型相對更多,包括string(字串)、list(鏈表)、set(集合)、zset(sorted set
Time of Update: 2018-01-11
wtforms快速使用和源碼分析(基於flask),wtformsflaskwtforms和django的form組件大同小異,下面給出一個應用舉例以便快速查詢。開始使用 1 from flask import Flask, render_template, request, redirect 2 3 from wtforms import Form 4 5 from wtforms.fields import core 6 from wtforms.fields import
Time of Update: 2018-01-10
Python(二)列表的增刪改查,python列表增刪改一,列表的增刪改查 列表中增加元素: 1,從列表的末尾增加一個元素:append("")2,從列表中插入一個元素:insert(下標位置,插入的元素) 合并列表: 1,name.extend(name2)將name2列表中的元素,添加到列表name中; 刪除列表中元素: 1,彈出一個元素:pop()