Time of Update: 2017-11-10
標籤:htm 分享 googl .exe 開啟 utf-8 slist storage images 前言selenium2啟動Chrome瀏覽器是需要安裝驅動包的,但是不同的Chrome瀏覽器
Time of Update: 2017-11-10
標籤:style 正則表達 python com 匹配 mpi compile group 正則 Python的Regex預設是“貪心匹配”,即在有第二義的情況下,儘可能匹配最長的字串,在R
Time of Update: 2017-11-10
標籤:element cte ota manager selenium2 false arguments try first 前言在測試案例中,執行完測試案例後,最後一步是判斷測試結果是pass
Time of Update: 2017-11-10
標籤:erro ons 問題 not 產生 byte join 檔案 must 今天寫上傳檔案代碼,如下def uploadHandle(request):
Time of Update: 2017-11-10
標籤:expected table 變數 rem protoc find tar required 遇到 前言有不少小夥伴在安裝selenium環境後啟動firefox報錯,因為現在seleni
Time of Update: 2017-11-09
標籤:第一個 targe get int lambda target 定製 範圍 pytho 在python手冊中:sorted(iterable[,cmp,[,key[,reverse=Tru
Time of Update: 2017-11-10
標籤:原理 產生 class global print語句 意義 pre oca 靜態 學習地址:http://www.jianshu.com/p/17a9d85845301、變數範圍LEGB1
Time of Update: 2017-11-09
標籤:python模組 datetime 格式轉換 Python 模組(Module),是一個 Python 檔案,以 .py 結尾,包含了 Python
Time of Update: 2017-11-08
標籤:https and es2017 unp 技術分享 you 簡單 com images 可關注我的個人公眾號:卟野iiiiiiiyaPython開發簡單爬蟲:https://mp.weix
Time of Update: 2017-11-06
標籤:python在調用一個變數的時候,如果這個變數沒有被定義,那麼python會報錯。要解決的方法也很簡單,就是事先給變數賦一個空值。但是也可以通過調用系統的內建函數來判斷一個變數名是否已經被定義了。有3個內建函數都可以實現。res1 = ‘test‘ in locals().keys()res2 = ‘test‘ in dir()res3 = ‘test‘ in vars(
Time of Update: 2017-11-06
標籤:att get 技術分享 one set img 獲得 delattr 列印 issubclass(class,
Time of Update: 2017-11-06
標籤:def ons span size 定時任務 pre cal cron clu 1.簡介apscheduler是python中的任務定時模組,它包含四個組件:觸發器(trigger),作業
Time of Update: 2017-11-05
標籤:python logs rom pos processor copy www 提示 部署 Cannot find a valid baseurl for repo: base/7/x86_
Time of Update: 2017-11-10
python樣本1(基本知識鞏固),python樣本知識鞏固練習1:建立一個程式,該程式提示使用者在while迴圈中輸入數值,並更加輸入的數值逐步構建一個列表。使用者結束輸入(按Enter鍵)時,列印出輸入的數值本身、輸入數值個數、輸入數值和、輸入的最小值和最大值以及平均值。範例程式碼:注意:本程式中使用了 int()類型轉換方法和最小值和最大值擷取方法 list.index(min(list)) 與 list.index(max(list)),取出的是索引值,還需根據索引值取出對應的值。練習2
Time of Update: 2017-11-09
Python內建類型(4)--數值,python內建 Python有以下三種的數實值型別: 整型(integers), 浮點型(floating point numbers), 以及 複數(complex numbers)。此外,布爾是整數的子類型。數實值型別說明整數由1-n個數字字元表示,整數的類型名稱是int,所有的整數都是類型int的執行個體;浮點數由整數部分和小數部分構成,中間用.串連,浮點數的類型名稱是float,所有浮點數都是類型float的執行個體;複數由實部和虛部構成,
Time of Update: 2017-11-09
Pyhton3字串自記錄,Pyhton3字串記錄>>> para_str = """這是一個多行字串的執行個體多行字串可以使用定位字元TAB ( \t )。也可以使用分行符號 [ \n ]。""">>> print (para_str)這是一個多行字串的執行個體多行字串可以使用定位字元TAB ( )。也可以使用分行符號 [ ]。>>> Python 的字串常用內建函數如下:
Time of Update: 2017-11-08
windows10 下使用Pycharm2016 基於Anaconda3 Python3.6 安裝Mysql驅動總結,本文記錄:在PyCharm2016.3.3 中基於Anaconda3 Python3.6版本安裝Python for Mysql驅動。嘗試了安裝Mysql-Connector成功,但是串連資料庫時驅動有bug而失敗;嘗試安裝MySQLdb,因Python版本相容問題
Time of Update: 2017-11-07
嵩天老師的零基礎Python筆記:https://www.bilibili.com/video/av15123607/?from=search&seid=10211084839195730432#page=25 中的35-37講,#coding=gbk#嵩天老師的零基礎Python筆記:https://www.bilibili.com/video/av15123607/?from=search&seid=10211084839195730432#page=25 中的35-37
Time of Update: 2017-11-06
學習Python第一天,python第一天學習Python的第一句代碼;# -*- coding:utf-8 -*-# 等待使用者輸入:user = raw_input("請輸入內容:")pwd = raw_input("請輸入密碼:")# 判斷使用者名稱和密碼是否正確if user == "wp" and pwd == "123":print "恭喜登入成功"else:print
Time of Update: 2017-11-07
block(區塊層級元素)和 inline(內嵌元素) 的區別,blockinlineblock(區塊層級元素)和 inline(內嵌元素) 的區別 (2009-01-05 10:32:07)轉載▼標籤: 雜談分類: div+cssdiv這樣的區塊層級元素,就會自動佔據一定矩形空間,可以通過設定高度、寬度、內外邊距等屬性,來調整的這個矩形的樣子;與之相反,像“span”這樣的行內元素,則沒有自己的獨立空間,它是依附於其他區塊層級元素存在的,因此,