#pythonのgw hasil pencarian
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. Lakers 48.2K posts
- 2. Dillon Brooks 5,447 posts
- 3. Giants 81.8K posts
- 4. #WWERaw 65.8K posts
- 5. Bron 22.7K posts
- 6. Patriots 122K posts
- 7. Drake Maye 22.9K posts
- 8. Dart 34.4K posts
- 9. Suns 16.9K posts
- 10. Collin Gillespie 1,672 posts
- 11. Diaz 33.7K posts
- 12. Devin Williams 7,442 posts
- 13. Ryan Nembhard 3,372 posts
- 14. Pats 15.4K posts
- 15. Gunther 14.1K posts
- 16. Devin Booker 2,407 posts
- 17. Joe Schoen 3,271 posts
- 18. Younghoe Koo 6,410 posts
- 19. Abdul Carter 10.5K posts
- 20. Mets 18.4K posts