原创 13Python標準庫系列之shutil模塊

Python標準庫系列之shutil模塊The shutil module offers a number of high-level operations on files and collections of files. In par

原创 10Python全棧之路系列之深淺拷貝標準庫系列之datetime模塊

Python標準庫系列之datetime模塊Fast implementation of the datetime type.功能說明datetime.date.today()打印輸出當前的系統日期datetime.date.fromtim

原创 11Python標準庫系列之configparser模塊

Python標準庫系列之configparser模塊This module provides the ConfigParser class which implements a basic configuration language wh

原创 12Python標準庫系列之subprocess模塊

Python標準庫系列之subprocess模塊This module allows you to spawn processes, connect to their input/output/error pipes, and obtain

原创 16Python標準系列之random模塊

Python標準庫系列之random模塊This module implements pseudo-random number generators for various distributions.random.random()生成0-

原创 19Python標準庫系列之MySQL模塊

Python標準庫系列之MySQLdb模塊MySQLdb模塊的主要功能就是提供Python操作MySQL數據庫的一個API,通過MySQLdb模塊我們可以對數據庫進行增,刪,改,查, 等操作.MySQLdb工作流程如下:connection

原创 15Python標準庫系列之tarfile模塊

Python標準庫系列之tarfile模塊The tarfile module makes it possible to read and write tar archives, including those using gzip, bz

原创 20Ptrhon標準庫系列之Paramiko模塊

Python標準庫系列之Paramiko模塊Paramiko是一個Python實施SSHv2的協議,提供客戶端和服務器的功能。雖然它利用一個Python C擴展低級別加密的paramiko本身就是圍繞SSH聯網概念的純Python接口。Pa

原创 14Python標準庫系列之zipfile模塊

Python標準庫系列之zipfile模塊The ZIP file format is a common archive and compression standard. This module provides tools to cre

原创 18Python標準庫系列之logging模塊

Python標準庫系列之logging模塊This module defines functions and classes which implement a flexible event logging system for appli

原创 22Python標準庫系列之Redis模塊

Python標準庫系列之Redis模塊What is redis?Redis is an open source (BSD licensed), in-memory data structure store, used as databas

原创 1ansible 模塊使用

ansible 默認提供了很多模塊來供我們使用。在 Linux 中,我們可以通過 ansible-doc -l 命令查看到當前 ansible 都支持哪些模塊,通過 ansible-doc  -s  模塊名  又可以查看該模塊有哪些參數可以

原创 centos7安裝jumpserver3.0跳板機

Jumpserver是一款由python編寫, Django開發的開源跳板機/堡壘機系統, 助力互聯網企業高效 用戶、資產、權限、審計 管理。jumpserver實現了跳板機應有的功能,基於ssh協議來管理,客戶端無需安裝agent。Jum

原创 面相對象的三大基本特性五大基本原則

透切理解面向對象三大基本特性是理解面向對象五大基本原則的基礎.三大特性是:封裝,繼承,多態  所謂封裝,也就是把客觀事物封裝成抽象的類,並且類可以把自己的數據和方法只讓可信的類或者對象操作,對不可信的進行信息隱藏。封裝是面向對象的特徵之一,

原创 3Python全棧之路系列之MySQL表內操作

Python全棧之路系列之MySQL表內操作先創創建一個表用於測試-- 創建數據庫 CREATE DATABASE dbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci; -- 創建表 CR