本题注意点:python中字符串大小写转换
import numpy as np
def toLowerCase(str):
"""
:type str: str
:rtype: str
"""
return str.lower()
# samples:
print(toLowerCase('Hello'))
print(toLowerCase('here'))
print(toLowerCase('LOVELY'))
本题注意点:python中字符串大小写转换
import numpy as np
def toLowerCase(str):
"""
:type str: str
:rtype: str
"""
return str.lower()
# samples:
print(toLowerCase('Hello'))
print(toLowerCase('here'))
print(toLowerCase('LOVELY'))