#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. Broncos 46.6K posts
- 2. Mariota 13K posts
- 3. Ertz 3,091 posts
- 4. Commanders 33K posts
- 5. Bo Nix 9,977 posts
- 6. #RaiseHail 5,727 posts
- 7. Riley Moss 2,278 posts
- 8. #BaddiesUSA 25.5K posts
- 9. Happy New Month 172K posts
- 10. Treylon Burks 12.2K posts
- 11. Terry 20.1K posts
- 12. Bonitto 5,673 posts
- 13. Deebo 3,122 posts
- 14. Collinsworth 3,057 posts
- 15. #RHOP 12.3K posts
- 16. Dan Quinn N/A
- 17. Sean Payton 1,631 posts
- 18. Jake Moody N/A
- 19. Chrisean 9,615 posts
- 20. #SundayNightFootball N/A