Development environment: WindowsEditor: PycharmPython Environment: 3.6Basic requirements: Write a login
Enter User name password
Show welcome message after successful authentication
Three-time error after locking
Basic ideas:1.
Python character encoding
The earliest character encoding standard: ASCII
127 characters, no Chinese
1 English letters required 1 bytes
8 bits = 1 bytes1024 bytes =1kb1024kb=1mbLater, in order to extend Chinese
The functions of the Calendar module are calendar-related, provide some ways to manipulate dates, and generate calendars.There are three main categories available in the Calendar module:First, calendar. Calendar (firstweekday=0)This class provides a
Numpy (numerical Python)
Foundation package for high performance scientific computing and data analysis;
Ndarray, multi-dimensional Array (matrix), with vector computing ability, fast, save space;
Matrix operations, without loops,
SubprocessThis article refers to the http://www.cnblogs.com/vamei/archive/2012/09/23/2698014.html of the Vamei great God.Using the Subprocess package can further open a sub-process under the process of running Python, to create a child process to
The ability to implement super () and Init () is similar for single-inheritance
Class Base (object): def init (self): print ' base create ' class Childa (base): def init: print ' Creat A ', base.init (self) class childb
The structs in Python are primarily used to handle C structured data, which is converted to Python's string type before being read, and then converted to a structured type of python, such as the tuple (tuple). The common input channel originates
In Python, strings can be enclosed in single quotes or double quotes, which are equivalent, while in PHP, some of the single and double quotes are not the same, although the expression of the string, but in PHP single quotation mark resolution
In Python development, the most common way to download files is to use the Urllib or URLLIB2 module via HTTP.
Of course you can also use Ftplib to download files from the FTP site. In addition, Python provides another way to requests.
Here's a look
In Python to work with Excel, you must use the third-party module XLRD, so the Windows I install method is cmd command: E:\anzhuang\python\scripts>easy_install xlrd (The path must be under Python's scripts and must be installed
Related APIs:
Folder:
Get the current working directory, that is, the directory path of the current Python script work: OS.GETCWD ()
Returns all files and directory names under the specified directory name: Os.listdir ()
function to delete a file:
This article to you to share is the use of Python through the Sogou entrance, crawl the article of the small program, very simple and practical, the need for small partners can refer to the next
I want to get a collection of the article site,
This article mainly introduces Python to find out 9 consecutive free ports, the interested partners can refer to
First, the project needs
To install a software, configure the time to fill out the idle port. See if a port on one of 5 platforms is
Python has a lot of string connections, today in writing code, by the way, from the most original string connection to string list connection, we feel the next
There are many string connections in Python, and today you write the code, and by the
The idea of optimization is to use Single-layer loop nesting to complete the level three menu, this optimization idea I like very much, I like in programming time with the fewest things to write the same effect, usually this will be around, but very
If a function calls itself directly or indirectly, it forms a recursive (recursion), such as an implementation of the Fibonacci Sequence.def fib (n): if n Recursion must have an end condition, otherwise a dead loop is formed, such as the
Django advanced addition, django advanced
Preface: This blog adds to the previous blog's django advanced tutorial.
I,
The front-end interface is relatively simple (ugly) and has two functions:
Extract the name from the database. For example,
What is PyODPS DataFrame and PyODPSDataFrame?
I have recently written several articles about PyODPS DataFrame, but some still do not understand what PyODPS DataFrame is and what it can do. In this article, I will explain and briefly introduce the
Describes the static methods and class member methods in Python.
Preface
Because the level of Python has been in the usable stage, the script used in normal times is also relatively simple in writing, and has not written a slightly larger project.
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