学习时间:
2023年1月29日
题目描述:
题解分享:
# 作者: 繁华倾夏
# 2023年01月28日
# 力扣(LeetCode):709. 转换成小写字母
class Solution:
# def toLowerCase(self, s: str) -> str: # 力扣测试时使用
def toLowerCase(s): # pycharm测试时使用
return s.lower() # 一行转换轻轻松松解决问题
# 测试用例-python编程时需严格注意缩进,否则程序不能正常运行
# 输入 s = "Hello"
# 输出 "hello"
if __name__ == '__main__':
s='Hello'
re=toLowerCase(s)
print(re)