This chapter describes the
ord in Python ()The meaning and function of functions, in general,
ord () functionMainly used to return the corresponding characters of the ASCII code, CHR () is mainly used to denote the ASCII code corresponding to the
The Ord () function is mainly used to return the ASCII code of the corresponding character, and Chr () is used mainly to denote the ASCII code corresponding to the character of his input when the number, can be in decimal or hexadecimal.Example:
Chr (), unichr (), and ord ()
The chr () function uses a range (0 to 256 ~ 255) an integer is used as a parameter and a corresponding character is returned. Unichr () is the same as it, but only returns Unicode characters. The parameter range of
This article mainly shares Python common operation string function and method summary knot, including the string format output and splicing and other basic knowledge, need friends can refer to the next
For example, a string Python, which is just a
The content of this article
Built-in functions
anonymous functions
Re module
Time Module
Random module
OS Module
SYS module
JSON and Pickle modules
Shelve module
First, built-in functions1.
Basic Knowledge
What does def init mean in the Python class, what does it do, what is the requirement?
Application :Initializes the value of the instance. These values are typically called by other methodsRequirements :Initialize values only, do
Python BASICS (10)-numbers, python basics-Numbers
The topic of this article is numbers in Python. Describes each numeric type in detail, the various operators they apply, and the built-in functions used to process numbers. At the end of the article,
Python learning notes sorting (4) strings in Python..., python learning notes
A string is an ordered Character Set combination used to store and present text-based information.Common string constants and expressionsT1 = ''empty stringT2 = "diege's"
Summary of Python built-in string methods, python strings
String processing is a very common skill, but there are too many built-in string methods in Python that are often forgotten. For quick reference, I wrote examples for each built-in method
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.