#pythonのgw résultats de recherche
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. #GivingTuesday 12.2K posts
- 2. #ALLOCATION 263K posts
- 3. The BIGGЕST 458K posts
- 4. #JUPITER 263K posts
- 5. Good Tuesday 34.8K posts
- 6. #GMMTVxTPDA2025 817K posts
- 7. Susan Dell N/A
- 8. Lucario 6,535 posts
- 9. Michael Dell 1,491 posts
- 10. rUSD N/A
- 11. Costco 34.2K posts
- 12. Kanata 27.5K posts
- 13. Taco Tuesday 12.1K posts
- 14. #AreYouSure2 63.7K posts
- 15. Dart 41.3K posts
- 16. Trump Accounts 4,951 posts
- 17. JOSSGAWIN AT TPDA2025 123K posts
- 18. JIMMYSEA TPDA AWARD 2025 81.6K posts
- 19. King Von N/A
- 20. Tennessee 135K posts