此函数返回一个数组,其中元素转换为小写。它为每个元素调用 str.lower 。
import numpy as np print np.char.lower(['HELLO','WORLD']) print np.char.lower('HELLO')
其输出如下-
['hello' 'world'] hello
此函数返回一个数组,其中元素转换为小写。它为每个元素调用 str.lower 。
import numpy as np print np.char.lower(['HELLO','WORLD']) print np.char.lower('HELLO')
其输出如下-
['hello' 'world'] hello
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M