#pythonのgw zoekresultaten
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. #Kodezi N/A
- 2. Brian Cole 12.7K posts
- 3. Chronos 1,374 posts
- 4. Walter Payton 9,286 posts
- 5. Price 266K posts
- 6. The FBI 113K posts
- 7. Merry Christmas 68.5K posts
- 8. Woodbridge 2,618 posts
- 9. #NationalCookieDay 1,034 posts
- 10. #WPMOYChallenge 16.4K posts
- 11. Tong 17.6K posts
- 12. #thursdayvibes 3,235 posts
- 13. #25SilverPagesofSoobin 34.3K posts
- 14. Earl Campbell 3,861 posts
- 15. GLOWING FAYE AT RED SEA FILM25 90.2K posts
- 16. The Blaze 5,994 posts
- 17. Dealerships 1,995 posts
- 18. Hilux 12.7K posts
- 19. $META 13.2K posts
- 20. Good Thursday 40.3K posts