numpy.core.defchararray.startswith()

numpy.core.defchararray.startswith

numpy.core.defchararray.startswith(a, prefix, start=0, end=None) [source]

Returns a boolean array which is True where the string element in a starts with prefix, otherwise False.

Calls str.startswith element-wise.

Parameters:

a : array_like of str or unicode

prefix : str

start, end : int, optional

With optional start, test beginning at that position. With optional end, stop comparing at that position.

Returns:

out : ndarray

Array of booleans

See also

str.startswith

© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.core.defchararray.startswith.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部