Initial knowledge of data types
Data operations
First, the data type initial knowledge1. Digital1 is an integer. It is a literal constant, because it cannot change its value. int (integer) on a 32-bit machine, the number of integers is
Brief introduction to several simple data types of Python and how to use themStringStrings are immutable data types and can be manipulated with a variety of built-in methods.Creating a string is a value that assigns a string to a variable. Strings
Data types for Python:int (integral type)On a 32-bit machine, the number of integers is 32 bits and the value range is -2**31~2**31-1, which is -2147483648~2147483647On a 64-bit system, the number of integers is 64 bits and the value range is -2**63~
The power of Python is that he has a very rich and powerful library of standards and third-party librariesRunning the following code, a series of paths will appear, where Python's third-party libraries generally exist site-package, such as
Reprinted from: http://www.cnblogs.com/gala/archive/2011/09/22/2184801.htmlThis article is very well written, so shameless turn.Sometimes it is necessary to use Python to process binary data, for example, access to files, socket operation. At this
I. Development of PythonThe founder of Python is Guido van Rossum (Guido van Rossum). During the Christmas of 1989, Guido van Rossum to spend time in Amsterdam, determined to develop a new script interpreter, as an inheritance of the ABC
The full format of printf format control:%-0 M.N L or H format charactersThe following describes the items that comprise the format description:①%: Represents the starting symbol for the format description, which is indispensable.②-: Yes-Indicates
Variable usage considerations
Use the lowercase l and the capital Letter o sparingly, as they may be seen as values 1 and 0.
The lowercase python variable name should be used.
StringIn Python, a string is enclosed in quotation
Preface:Python is a language that dynamically interprets strong types, between C and the shell. Some introduction, application fields and development history of Python can be consulted:http://www.cnblogs.com/tcheng/articles/5786799.htmlvariables,
First, the initial knowledge of the moduleFirst, the file name cannot be the same as the imported module name. Because the system defaults to find the module name from the current file, if the file name and the imported module name, it is equivalent
Constructor description bigdecimal (int) Creates an object with the integer value specified by the parameter. bigdecimal (double) creates an object with the double value specified by the parameter. bigdecimal (long) creates an object with a
function DescriptionIn GCC programming, the character format output function that we commonly use is printf, in fact, GCC inherits the C language processing character has the powerful function style, it provides a series of formatted output function,
A struct is a built-in module in Python used to convert between a struct in C and a string in Python, typically from a file or network
1. function(1) Convert Python data to a string in the specified format (the string is a byte stream)(2)
1. Digital
2 is an example of an integer.Long integers are just larger integers.3.23 and 52.3E-4 are examples of floating-point numbers. The e tag represents a power of 10. Here, 52.3E-4 means 52.3 * 10-4.( -5+4j) and (2.3-4.6j) are
Initial knowledge of data typesDigital
2 is an example of an integer.
Long integers are just larger integers.
3.23 and 52.3E-4 are examples of floating-point numbers. The e tag represents a power of 10.
1. Digital
2 is an example of an integer.Long integers are just larger integers.3.23 and 52.3E-4 are examples of floating-point numbers. The e tag represents a power of 10. Here, 52.3E-4 means 52.3 * 10-4.( -5+4j) and (2.3-4.6j) are
Introduction of data type(1) Python data types include numeric types, string types, tuples, lists, dictionaries(2) Numeric type can be divided into integer, Long integer, floating point type, plural type(3) strings, tuples, and lists are all part of
format string
The general form of the format string is:%[*][input data width] [length] type with parentheses [] as an option. The meaning of the items is as follows:1. TypeRepresents the type of input data, with its format character and meaning as
One, Asciiascii (str) returns the ASCII code value of the leftmost character of the string str. If Str is an empty string, return 0. If STR is NULL, returns NULL.Second, Ordord (str) If the leftmost character of the string str is a multibyte
1) count () functionReturns the number of non-null values in an (field) field.Grammar:SELECT COUNT () from [WHERE ] [GROUP by ]Example:>select COUNT (water_level) from H2o_feetname:h2o_feet--------------time count1970-01-01t00:0 0:00z
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.