—Easy

https://leetcode.com/problems/to-lower-case/

Leetcode-709. To Lower Case

Code:

 

class Solution:
    def toLowerCase(self, str: str) -> str:
        s = str.lower()
        return s

# s = Solution()
# print(s.toLowerCase('Hello'))

思路:

1.复习一下Python的string操作

相关文章:

  • 2021-09-09
  • 2022-01-28
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-10-19
猜你喜欢
  • 2021-10-23
  • 2021-10-10
  • 2022-12-23
  • 2021-12-19
  • 2022-01-15
  • 2022-02-03
  • 2021-10-08
相关资源
相似解决方案