zoukankan      html  css  js  c++  java
  • python __builtins__ slice类 (62)

    62、'slice', 对序列化类型数据切片,返回一个新的对象。

    class slice(object)
    | slice(stop)
    | slice(start, stop[, step])
    |
    | Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
    |
    | Methods defined here:
    |
    | __eq__(self, value, /)
    | Return self==value.
    |
    | __ge__(self, value, /)
    | Return self>=value.
    |
    | __getattribute__(self, name, /)
    | Return getattr(self, name).
    |
    | __gt__(self, value, /)
    | Return self>value.
    |
    | __le__(self, value, /)
    | Return self<=value.
    |
    | __lt__(self, value, /)
    | Return self<value.
    |
    | __ne__(self, value, /)
    | Return self!=value.
    |
    | __new__(*args, **kwargs) from builtins.type
    | Create and return a new object. See help(type) for accurate signature.
    |
    | __reduce__(...)
    | Return state information for pickling.
    |
    | __repr__(self, /)
    | Return repr(self).
    |
    | indices(...)
    | S.indices(len) -> (start, stop, stride)
    |
    | Assuming a sequence of length len, calculate the start and stop
    | indices, and the stride length of the extended slice described by
    | S. Out of bounds indices are clipped in a manner consistent with the
    | handling of normal slices.
    |
    | ----------------------------------------------------------------------
    | Data descriptors defined here:
    |
    | start
    |
    | step
    |
    | stop
    |
    | ----------------------------------------------------------------------
    | Data and other attributes defined here:
    |
    | __hash__ = None

  • 相关阅读:
    for,while循环嵌套二次练习
    break语句;continue语句
    实际运用for、while循环嵌套
    for,while循环嵌套
    while循环
    if语法分支
    js读取cookie,并利用encrypt和decrypt加密和解密方法
    instance of的java用法
    objectmapper使用
    日志组件slf4j介绍及配置详解
  • 原文地址:https://www.cnblogs.com/gundan/p/8257300.html
Copyright © 2011-2022 走看看