zoukankan      html  css  js  c++  java
  • 列表方法

      
        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                   
  • 相关阅读:
    python 中的subprocess
    Pandas 的基本操作
    mongodb的基本操作
    Mongodb的安装
    Mysql has gone way (Django 下的解决方法)
    python 中的魔法类
    python2与python3共存时的pip问题
    Tango with django 1.9 中文——3.Django基础
    bootstrap日期范围选择插件daterangepicker详细使用方法
    Django Static与Media
  • 原文地址:https://www.cnblogs.com/jiangzhch5/p/13246076.html
Copyright © 2011-2022 走看看