Lists¶
¶
effect: More often, an empty list is assigned to a variable, or it can be output directly.
¶
effect: Initialize a list, or reassign the list
¶
effect: Assign the same value to the list a certain number of times
¶
effect: Read or delete the value of the corresponding position in the list
¶
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
¶
effect: Find the corresponding value in the list and return the subscript
example:
computational results:
2
¶
effect: Get a part of the list by subscript
¶
effect: Convert the string to a list, add subscripts through the specified symbols
parameter: Only string
¶
effect: Convert the list to a string, and separate them by the specified symbol
parameter: Only list
example:
computational results:
['a', 'b', 'c'] a,*,b,*,c
¶
effect: Get list length
¶
effect: Determine whether the list is empty, return a Boolean value