#pythonのgw Suchergebnisse
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. #twitchrecap 9,244 posts
- 2. #GivingTuesday 28K posts
- 3. Larry 49.5K posts
- 4. Trump Accounts 17.1K posts
- 5. Susan Dell 8,191 posts
- 6. Foden 15.1K posts
- 7. Cabinet 74.4K posts
- 8. So 79% 1,977 posts
- 9. Joe Schoen 7,730 posts
- 10. #AppleMusicReplay 10.5K posts
- 11. $NXXT N/A
- 12. Costco 54.4K posts
- 13. Haaland 26.8K posts
- 14. #TADCFriend N/A
- 15. Pat Leonard N/A
- 16. Sleepy Don 3,023 posts
- 17. #SleighYourHolidayGiveaway N/A
- 18. NextNRG Inc. 3,824 posts
- 19. Sabrina Carpenter 34.7K posts
- 20. Jared Curtis 3,047 posts