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)


暂无数据
推荐帖子
0条评论
0条评论
0条评论