StringVector

Neurocean大约 2 分钟

StringVector

StringVector Objects

class StringVector()

__bool__

def __bool__()

bool(self: ocean.ocean.StringVector) -> bool

Check whether the list is nonempty

__contains__

def __contains__(x)

contains(self: ocean.ocean.StringVector, x: str) -> bool

Return true the container contains x

__delitem__

def __delitem__(*args, **kwargs)

delitem(*args, **kwargs) Overloaded function.

  1. delitem(self: ocean.ocean.StringVector, arg0: int) -> None

Delete the list elements at index i

  1. delitem(self: ocean.ocean.StringVector, arg0: slice) -> None

Delete list elements using a slice object

__eq__

def __eq__(arg0)

eq(self: ocean.ocean.StringVector, arg0: ocean.ocean.StringVector) -> bool

__getitem__

def __getitem__(*args, **kwargs)

getitem(*args, **kwargs) Overloaded function.

  1. getitem(self: ocean.ocean.StringVector, s: slice) -> ocean.ocean.StringVector

Retrieve list elements using a slice object

  1. getitem(self: ocean.ocean.StringVector, arg0: int) -> str

__init__

def __init__(*args, **kwargs)

init(*args, **kwargs) Overloaded function.

  1. init(self: ocean.ocean.StringVector) -> None

  2. init(self: ocean.ocean.StringVector, arg0: ocean.ocean.StringVector) -> None

Copy constructor

  1. init(self: ocean.ocean.StringVector, arg0: Iterable) -> None

__iter__

def __iter__()

iter(self: ocean.ocean.StringVector) -> Iterator

__len__

def __len__()

len(self: ocean.ocean.StringVector) -> int

__ne__

def __ne__(arg0)

ne(self: ocean.ocean.StringVector, arg0: ocean.ocean.StringVector) -> bool

__repr__

def __repr__()

repr(self: ocean.ocean.StringVector) -> str

Return the canonical string representation of this list.

__setitem__

def __setitem__(*args, **kwargs)

setitem(*args, **kwargs) Overloaded function.

  1. setitem(self: ocean.ocean.StringVector, arg0: int, arg1: str) -> None

  2. setitem(self: ocean.ocean.StringVector, arg0: slice, arg1: ocean.ocean.StringVector) -> None

Assign list elements using a slice object

append

def append(x)

append(self: ocean.ocean.StringVector, x: str) -> None

Add an item to the end of the list

clear

def clear()

clear(self: ocean.ocean.StringVector) -> None

Clear the contents

count

def count(x)

count(self: ocean.ocean.StringVector, x: str) -> int

Return the number of times x appears in the list

extend

def extend(*args, **kwargs)

extend(*args, **kwargs) Overloaded function.

  1. extend(self: ocean.ocean.StringVector, L: ocean.ocean.StringVector) -> None

Extend the list by appending all the items in the given list

  1. extend(self: ocean.ocean.StringVector, L: Iterable) -> None

Extend the list by appending all the items in the given list

insert

def insert(i, x)

insert(self: ocean.ocean.StringVector, i: int, x: str) -> None

Insert an item at a given position.

pop

def pop(*args, **kwargs)

pop(*args, **kwargs) Overloaded function.

  1. pop(self: ocean.ocean.StringVector) -> str

Remove and return the last item

  1. pop(self: ocean.ocean.StringVector, i: int) -> str

Remove and return the item at index i

remove

def remove(x)

remove(self: ocean.ocean.StringVector, x: str) -> None

Remove the first item from the list whose value is x. It is an error if there is no such item.

上次编辑于:
贡献者: damone