Lists

a

  • effect: More often, an empty list is assigned to a variable, or it can be output directly.


a

  • effect: Initialize a list, or reassign the list


a

  • effect: Assign the same value to the list a certain number of times


a

  • effect: Read or delete the value of the corresponding position in the list


a

  • effect: Modify the value of the corresponding position in the list

  • parameter: When the position parameter is #, the first parameter indicates that the position can only be of type int, and the second parameter indicates that the value to be modified can be of any type


a

  • effect: Find the corresponding value in the list and return the subscript

  • example:
    a computational results:

        2
    

a

  • effect: Get a part of the list by subscript


a

  • effect: Convert the string to a list, add subscripts through the specified symbols

  • parameter: Only string

a

  • effect: Convert the list to a string, and separate them by the specified symbol

  • parameter: Only list

  • example:
    a computational results:

        ['a', 'b', 'c']
        a,*,b,*,c
    

a

  • effect: Get list length


a

  • effect: Determine whether the list is empty, return a Boolean value


a

  • effect: Sort the list in the specified way and return the sorted list