Python Knowledge points Summary of the SUM function

Source: Internet
Author: User


Recently prepared to learn python, to recharge their own charge, these are I tidy up some of the basic knowledge of Python, will continue to update, and I hope to communicate with you


First, built-in functions

CMP (OBJ1,OBJ2)

Repr (obj) #返回一个对象的字符串表示 is actually equivalent to "

STR (obj) #同上

Type (obj) #返回对象的相应类型

X**y and POW (x, y) all represent the Y-times of X


Ii. Types of factory functions

Int () long () float ()Complex ()

STR () Unicode () basestring ()list ()

Tuple ()


Three, A storage type

(1) Atomic/scalar storage: Can hold a single Literal object type (numeric string)

(2) Container storage: Accommodates multiple object types (list, typle, directory)


B Update type

In fact, a new object was created and replaced the old object

Variable object list, dictionary

Immutable object numbers, strings, tuples


C Access model

Direct Access to all numeric types

Sequential String list tuple

Map Hash Key-value pair


Here the types can be summarized as follows:

This is what I have just summed up, in the future I will continue to write, and hope to communicate with you.

Python Knowledge points Summary of the SUM function

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.