A list of basic Python knowledge

Source: Internet
Author: User

1.

1. Increase: Append: Add a value Extend: Add a sequence Insert (Nsert (Understand): two parameters, the first is the position of the insert, the second is the value of the Insert Element) queue definition: Append: Add elements to the list, The element can be any form of data structure or object, the added object as an element in the list, and the last one. Extend: Used to append multiple values from another sequence at the end of a list, instead of adding the object as a whole, but taking each item out of the string is also a sequence dictionary, and when the dictionary is a sequence, each item of the sequence refers to the key2 of the dictionary. Delete Removepop If the pop does not add parameters, the deletion is the last element difference: 1:remove parameter is value, delete is the Valuepop parameter is index (index), delete is Value2:remove no return value, Pop returns the deleted element to the usage scenario: 1:remove2:pop deleted elements to determine the criteria: I don't want to use the deleted element to do anything else

A list of basic Python knowledge

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.