1. Connect MySQLDownload MySQL and download it on the website. All the way to install, set the account password.Download the MySQL compilation environment, Navicat;Create databases and tables in Navicat;Create TableURLs (IDint not
1. bytesEnglish documents:class bytes ([source[, encoding[, errors]]) Return a new "bytes" object, which is an immutable sequence of integers in the range 0 x 256 . was an bytes immutable version of bytearray – it has the same non-mutating methods
List operations: Lists generally need to call the method before printing, can not directly print the method of the call because the list can be modified generally does not return a new list # list # new_names = [' Lzc ', ' lzc2 ', ' lzc3 ']#
First, Introduction:Argparse is a standard module used by Python to parse command-line arguments and options in place of obsolete optparse modules. The Argparse module is used to parse command-line arguments, such as Python parsetest.py input.txt
f = Open ("File name", "Open with")Centent = f.read (size) f.readline (size) f.readlines ()F.close ()The file name requires a suffixOpen mode: r--> Read OnlyW--> Write onlyr+-Readw+-ReadA--Append writeA +-append read and writeWhen the file is opened
The Calendar module has a wide range of methods for working with calendar and monthly calendars, such as printing a month's monthly calendar:Import= Calendar.month ()print (" the following output October 2017 calendar:" )print (CAL)The output is as
Sockets common function functions:Socket.socket(family=af_inet, type=sock_stream, proto=0, fileno=none) #创建socket对象 Socket families (address cluster):Af_unix communication between native UNIX ——————————Af_inet —————————— using IPV4Af_inet6 ——————————
Seven main methods of the requests library1. Requests.requests (method, URL, **kwargs)Constructs a request that supports the underlying methods of the following methodsMethod: The request method, corresponding to the Get/put/post seven methods;URL:
1. OriginsRecently, due to work, the daily commuting time is too long, then moved to change the idea of renting. So, in thefree (http://www.ziroom.com/) brush and brush, with their own perceptual constant contrast of each house, feel neither
1 "Recursive Correlation:Recursion: Recursive algorithm is a direct or indirect process of invoking its own algorithm, in the computer programming, recursive algorithm to solve a large class of problems is very effective, it often makes the
String Slicing Name = "ABCdef"Name[1:3] indicates starting from subscript 1 to 3. (left closed right open interval does not contain right)The last of the strings in Python can use Len (name)-1 or-1, and so on and so on the second is-2 ...Name[3:] If
Because the Pexpect module does not work on Windows, it is officially given.So I used the Paramiko module for our interactions.My linux is Debian Kali linux 64 bitFirst we're going to go into vim 's /etc/ssh/sshd_config and get rid of
# Coding:utf-8 Import # The python regular expression module text="hi,hiasdf"= Re.findall ("\\bhi "#R is the meaning of raw, indicating that the string is not escaped, if not add R, the output is always empty, because \ will be after the b escaped,
We want to understand several functions:Paramiko. Tranport (("Destination IP, port") #这是上传目标的IP和端口 Paramiko. Sftpclient.from_tranport () #安全文件传输凭证 Sftp.put (Loaclfile,remotefile) #loaclfile是要上传的文件, RemoteFile is the file name to save after
A brief history of PythonFounder of Python: Guido van RossumGuido in December 1989, looking for an "after school" programming program to pass around Christmas time. Guido decided to write an interpreter for a new scripting language that was being
Python's listA list is similar to an array in C/s + +, where the same type of array is saved, and the list can hold different types.List of additions and deletions to change:name = [' Ha ', ' Hi ', ' he ']Name.append (' hh ') adds ' HH ' to the end
Only three global variables need to be changed to call directly:
# Coding=utf-8import os# Three global variables: Root_folder = './root ' # will be recursively folder root save_txt = './paths.txt ' # Record path of document Suffix_name = '. JPG '
Event-based thread-safe priority queue (python implementation) and eventpython
Event Events are a good thread synchronization mechanism and thread communication mechanism. In many python source code, event-based libraries provide a lot of thread
Python depth copy, python depth
1. python deep copy principle:For numbers and strings, assigning values, copying values, and copying values are meaningless because they always point to the same memory address. For dictionaries, tuples, and lists,
Python algorithm Basics
1. recursion:Recursion: a recursive algorithm is a process of directly or indirectly calling its own algorithms. In computer programming, recursive algorithms are very effective in solving a large variety of problems, it
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