Directory:
Paramiko Module Introduction
Paramiko Module Installation
Paramiko module Use
First, Paramiko module introductionParamiko is a module for remote control, which can be used to command or file the remote server, it is
Function Call functionFunction names can be passed as argumentsfunction name () execution functionFunction name refers to the function itself#!/usr/bin/env python#-*-coding:utf-8-*-defF1 ():return "F1"#f1 = function#F1 = The surrogate function#f1 ()
Xrange ()The xrange () function usage is exactly the same as range , and the difference is that instead of an array, a generator is generated.Grammar:Xrange (stop) xrange (start, stop[, step])
Start: Count starts from start. The default is
SYS modulesys.argv command line argument list, the first element is the program itself path Sys.exit (n) exits the program, exit normally (0) sys.path Returns the search path for the module, using the value of the
#继承实现#父亲会书法, the older son and younger son can calligraphy.#父亲一般能吃, the older son eats more than the youngest boy eats lessClass Father:def write (self):print ' I can write 'Class Oldbrother (father): #class A (B) subclass a inherits the parent
Button controlsNo function buttonThe Text property of the button displays theNo matter how the form is resized, it is always centered in the top-most upstream of the formClick Trigger EventThe command property of the Button invokes the method to
Python Object Properties0x01: all Python objects have three attributes and properties* Identity: Each object has a unique identity identity itself, and any one can be obtained using the built-in function ID ().* Type: Determines what type of value
SetDefine set ([1,2,3,4]){1,2,3,4}Key values are not repeatableTernary operatorsif Else value2Depth copyImport"123"# shallow copy # deep copy Summarize:1. The depth copy does not copy the STR and the numbers, using the same area of memory.2. For
#-*-coding:utf-8-*-#Classic class or Old test classclassA:Passa=A ()#New ClassclassB (object):Passb=B ()#Python2 not supported#print (a.__class__)Print(A.__class__)Print(Type (A))Print(Type (a))#Python2#__main__.
One, print 99 multiplication table:#coding: Utf-8for i in range (1,10): for J in Range (1,i+1): Print ("%dx%d=%d")% (j,i,j*i), print ' \ n 'Results:650) this.width=650; "title=" 99.png "alt=" wkiom1llma-trl7_aaassxicmss619.png-wh_50 "src=" https://s1
Brief introduction:
AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML).
AJAX is not a new programming language, but a new method of using existing standards.
AJAX is the art of exchanging data with a server and updating parts
First section Python file types
Source
Python source files with "py" extension, interpreted by the Python program, do not need to compile
BYTE code
Python source files are compiled with a file with the extension "PYc"
Compilation
The Python Excel operation requires an additional download of the XLRD and XLWT packages that correspond to the Python version for reading and writing to Excel.
Installation method: Directly after decompression, in the character command interface
I. Generators and iterators
1. Generator
The generator has the ability to generate, which simply represents the ability to generate, and when we need to use it, it is generated through an iterator. Because he only represents this ability to generate,
Python-numpy
Write and access to CSV files
Writing to a CSV file
CSV (comma‐separated value, comma-separated values), is a common file format used to store bulk data.
Writing to a CSV file
Np.savetxt (frame, array, fmt= '%.18e ', Delimiter=none)
My python diary --- DAY1, python diary --- DAY1
I learned how to teach Alex in the python tutorial of Alex. Hey. I hope I can stick to it.
I reviewed the basic knowledge I learned earlier. I hope that I can go further and further on the way to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service