• 列表方法


      
        def append(self, *args, **kwargs): # real signature unknown
            """ Append object to the end of the list. 
            在原来值后追加"""
            pass
    
        def clear(self, *args, **kwargs): # real signature unknown
            """ Remove all items from list. """
            pass
    
        def copy(self, *args, **kwargs): # real signature unknown
            """ 浅拷贝,用新变量接
            Return a shallow copy of the list. """
            pass
    
        def count(self, *args, **kwargs): # real signature unknown
            """ Return number of occurrences of value. """
            pass
    
        def extend(self, *args, **kwargs): # real signature unknown
            """可迭代对象,将每一个元素作为新元素加入列表中(字符串每个字符作为新的元素加入列表中) Extend list by appending elements from the iterable. """
            pass
    
        def index(self, *args, **kwargs): # real signature unknown
            """
            Return first index of value.
            
            Raises ValueError if the value is not present.
            """
            pass
    
        def insert(self, *args, **kwargs): # real signature unknown
            """ 
            Insert object before index. 
            在指定索引位置插入元素
            index(位置,元素)
            """
            pass
    
        def pop(self, *args, **kwargs): # real signature unknown
            """
           
            Remove and return item at index (default last).
            用新变量接被弹出的元素,默认是最后一个元素
            
            Raises IndexError if list is empty or index is out of range.
            """
            pass
    
        def remove(self, *args, **kwargs): # real signature unknown
            """
            Remove first occurrence of value.
            
            Raises ValueError if the value is not present.
            """
            pass
    
        def reverse(self, *args, **kwargs): # real signature unknown
            """ Reverse *IN PLACE*. """
            pass
    
        def sort(self, *args, **kwargs): # real signature unknown
            """
            Sort the list in ascending order and return None.
            
            The sort is in-place (i.e. the list itself is modified) and stable (i.e. the
            order of two equal elements is maintained).
            
            If a key function is given, apply it once to each list item and sort them,
            ascending or descending, according to their function values.
            
            The reverse flag can be set to sort in descending order.
            """
            pass                   
  • 相关阅读:
    小数的进制转换
    水题 O
    水题 J
    水题T,二进制转16进制
    水题B
    水题C
    HDU 2042
    HDU 2041
    Index For SQL Server
    Learning Note For Angular
  • 原文地址:https://www.cnblogs.com/jiangzhch5/p/13246076.html
Copyright © 2020-2023  润新知