#pythonのgw search results
634から6を、38214から8を返す関数。 def max_digit(number: int) -> int: return max(int(digit) for digit in str(number)) mapを使うと return max(map(int, str(number))) 私はmapが好きだ。 #PythonのGW #CheckiO
#PythonのGW #CheckiO hello world を Hello World にする関数 def to_title_case(sentence: str) -> str: return " ".join(map(str.capitalize, sentence.split())) " ".join(map( あたりの書き方が新鮮!
Pythonってすっきりしてるなあ。 def sum_numbers(text: str) -> int: return sum(int(word) for word in text.split() if word.isdigit()) こちらも美しい。 return sum(map(int, filter(str.isdigit, text.split()))) #PythonのGW #CheckiO
おおお、map&lambda! def to_title_case(sentence: str) -> str: return " ".join(map(lambda word: word.capitalize() + "!", sentence.split())) print(to_title_case("hello world")) #PythonのGW #CheckiO
Pythonってすっきりしてるなあ。 def sum_numbers(text: str) -> int: return sum(int(word) for word in text.split() if word.isdigit()) こちらも美しい。 return sum(map(int, filter(str.isdigit, text.split()))) #PythonのGW #CheckiO
634から6を、38214から8を返す関数。 def max_digit(number: int) -> int: return max(int(digit) for digit in str(number)) mapを使うと return max(map(int, str(number))) 私はmapが好きだ。 #PythonのGW #CheckiO
おおお、map&lambda! def to_title_case(sentence: str) -> str: return " ".join(map(lambda word: word.capitalize() + "!", sentence.split())) print(to_title_case("hello world")) #PythonのGW #CheckiO
#PythonのGW #CheckiO hello world を Hello World にする関数 def to_title_case(sentence: str) -> str: return " ".join(map(str.capitalize, sentence.split())) " ".join(map( あたりの書き方が新鮮!
Something went wrong.
Something went wrong.
United States Trends
- 1. $TCT 1,408 posts
- 2. Good Monday 31K posts
- 3. #MondayMotivation 6,161 posts
- 4. Cyber Monday 26.7K posts
- 5. #NavidadConMaduro N/A
- 6. #MondayVibes 2,658 posts
- 7. Happy New Month 285K posts
- 8. Victory Monday N/A
- 9. #MondayMood 1,071 posts
- 10. #December1st 2,348 posts
- 11. Clarie 2,125 posts
- 12. Jillian 1,847 posts
- 13. Bienvenido Diciembre 2,646 posts
- 14. John Denver 1,370 posts
- 15. Happy 1st 21.6K posts
- 16. Luigi Mangione 2,014 posts
- 17. Rosa Parks 2,371 posts
- 18. Honduras 200K posts
- 19. Mariota 13.9K posts
- 20. Thumb 10.7K posts