Python Learning DAY07

Source: Internet
Author: User

Str.join () splicing with XX

List and dictionary re-circulation when the deletion will be omitted

Copy a new dictionary or a new list to delete with the new dictionary or the values in the new column table

The. Fromkeys () returns to the new dictionary without affecting the original list, and the added value is multiple key shares

Set Set

Unordered No Duplicates Hash

Most commonly used to remove heavy

itself can be deleted and changed to check

Can be changed into an immutable set set hash using. Frozenset ()

Depth copy

Assignment when two variables are used together with an object

Shallow copy

Copy only the surface layer or the common

. copy

or use an index

New value = copied value [index Start, end]

A deep copy of the bottom layer is re-created.

New file = copy,deepcopy (the file to be copied)

Python Learning DAY07

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.