Time of Update: 2017-01-03
標籤:python基礎知識 python入門 寫在前面: 目前python的最新版本是3.6。本部落格以3.6版為主,會附帶提及2.7版本與此版本的不同之處!****************************************************************************目錄:1. python簡介.2. python的特點.3. python的用途.4.
Time of Update: 2017-01-03
標籤:body ble call nice containe property style new member collections模組基本介紹collections在通用的容器dict,l
Time of Update: 2016-12-30
標籤:python
Time of Update: 2016-12-30
標籤:project 目標 多個 自動化部署 install file remember tutorial 工作 from http://www.cnblogs.com/liujianzuo88
Time of Update: 2016-12-29
標籤:datetime python datatime python時間模組 因為經常會寫一些定時任務和報表,經常需要擷取昨天日期,上個月的天數,或者今天周幾,如果有python模組肯定方便不少,今天就介紹兩個“datetime”,“calendar”datetime模組介紹如何擷取當前的年,月,日,周。格式化輸出時間官方文檔傳送門In [25]:
Time of Update: 2016-12-30
標籤:pre 種類 char 劃線 字串 數字 序列 概念 style 1、數 python中有4種類型的數--整數、長整數、浮點數和複數2、字串 單引號、雙引號或者三引號包含的字元序列,如
Time of Update: 2016-12-31
標籤:.com and 程式 float span alt start pre blog python中的可變類型與不可變類型:在講python深淺拷貝之前,我們首先應該
Time of Update: 2016-12-30
標籤:選擇性參數 sum 簡單 求和 list reduce 計算 code 沒有 reduce()函數也是Python內建的一個高階函數。reduce()函數接收的參數和
Time of Update: 2016-12-29
標籤:lte set insert lin targe [] 做了 threading creat 最近這幾天,學習了一下python,對於爬蟲比較感興趣,就做了一個簡單的爬蟲項目,使用Py
Time of Update: 2016-12-30
標籤:存在 file 類型 indent nbsp attr try 輸入 index 一、異常簡介 二、異常種類 1 AttributeError
Time of Update: 2017-01-01
標籤:對象 -- turn 使用 建立 底線 get elf return 1、沒有許可權控制,在類方法或變數前加 "__"
Time of Update: 2016-12-29
標籤:default creat sock efault handle split pac map __init__ import socketserverimport struct# DNS
Time of Update: 2016-12-28
標籤:技術分享 等等 pat pen 相對 append 自己 public sys 想把自己寫的模組直接調用的時候,使用這個sys.path.append();但是總是報錯(圖1);解決方案,
Time of Update: 2017-01-03
pandas基礎-Python3,pandas-python3 未完 for examples: example 1: 1 # Code based on Python 3.x 2 # _*_ coding: utf-8 _*_ 3 # __Author: "LEMON" 4 5 import pandas as pd 6 7 d = pd.date_range('20170101', periods=7) 8 aList = list(range(1,8))
Time of Update: 2017-01-04
說一說python的牛比與不爽,一說python牛比本人寫了10年php了。今年開始改寫python了。相比之下,python牛比的地方:#)模組化比php做的好 ;#)適用範圍比php大許多,python是全功能指令碼!php是專門為寫動態網頁而生,而py可以用來玩玩案頭應用及其它很多方面,比如pyqt5 ,pycef3 ;#)python的代碼加密比php容易做,因為cython簡直就是大殺器!
Time of Update: 2017-01-02
python10作業思路及源碼:類Fabric主機管理程式開發(僅供參考),python10fabric 類Fabric主機管理程式開發一,作業要求1, 運行程式列出主機群組或者主機列表(已完成)2,選擇指定主機或主機群組(已完成)3,選擇主機或主機群組傳送檔案(上傳/下載)(已完成)4,充分使用多線程或多進程(已完成)5,不同主機的使用者名稱,密碼,連接埠可以不同(已完成)6,可向主機或主機群組批量發布命令(已完成)7,可一次性執行多條操作命令(已完成)二,程式檔案清單&n
Time of Update: 2016-12-31
flask+sqlite3+echarts2+ajax資料視覺效果,flasksqlite3前提:準備Python + Flask+Sqlite3的平台環境(windows系統)前面一節介紹flask怎麼安裝了,剩下sqlite3下載後解壓,然後環境變數添加解壓路徑就行了附加:http://www.sqlite.org/2016/sqlite-tools-win32-x86-3150200.zip 項目的目錄結構/www||-- /static| 
Time of Update: 2016-12-30
Python3中的字串函數學習總結,python3字串這篇文章主要介紹了Python3中的字串函數學習總結,本文講解了格式化類方法、尋找 & 替換類方法、拆分 & 組合類別方法等內容,需要的朋友可以參考下。 Sequence Typessequence類型有六種:strings, byte sequences (bytes objects), byte arrays(bytearray objects), list, tuple, range
Time of Update: 2016-12-29
在Python應用中使用MongoDB,python應用mongodbPython是開發社區中用於許多不同類型應用的強大程式設計語言。很多人都知道它是可以處理幾乎任何任務的靈活語言。因此,在Python應用中需要一個什麼樣的與語言本身一樣靈活的資料庫呢?那就是NoSQL,比如MongoDB。英文原文:https://realpython.com/blog/python/introduction-to-mongodb-and-python 1、SQL vs
Time of Update: 2016-12-30
python 添加tab補全,pythontab補全在平時查看Python方法用到tab補全還是很方便的。1. mac 平台 配置如下: mac是類Unix平台,需要在添加一條配置內容到bash_profile 中(預設是沒有這個檔案,可以建立一個放在宿主目錄下面) 先建立一個tab.py的檔案內容如下:import rlcompleter,sys,readline if sys.platform == 'darwin' and sys.version_info[0] == 2: