热线电话:13121318867

登录
2019-06-27 阅读量: 451
python如何将字符串改为小写字符

字符串操作 -

numpy.lower()此函数返回给定字符串中的小写字符串。它将所有大写字符转换为小写。如果不存在大写字符,则返回原始字符串。

# Python program explaining
# numpy.lower() function

import numpy as np

# converting to lowercase
print(np.char.lower(['GEEKS', 'FOR']))

# converting to lowercase
print(np.char.lower('GEEKS'))

0.0000
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子