#pythonのgw arama sonuçları
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. #ALLOCATION 150K posts
- 2. The BIGGЕST 513K posts
- 3. #JUPITER 150K posts
- 4. #GMMTVxTPDA2025 236K posts
- 5. Kanata 20.4K posts
- 6. Good Tuesday 23.1K posts
- 7. Lakers 49.2K posts
- 8. Dillon Brooks 7,685 posts
- 9. SNOW DAY 7,158 posts
- 10. Hololive 15.5K posts
- 11. #GivingTuesday 7,452 posts
- 12. Giants 87.6K posts
- 13. Dart 37.4K posts
- 14. #AreYouSure2 38.6K posts
- 15. Bron 25.8K posts
- 16. Suns 20.1K posts
- 17. Costco 26.5K posts
- 18. STEAK 10.6K posts
- 19. Drake Maye 25.1K posts
- 20. Gillespie 3,708 posts