#pythonのgw ผลการค้นหา
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. Mark Pope 1,754 posts
- 2. Jimmy Butler 2,034 posts
- 3. Seth Curry 2,551 posts
- 4. Derek Dixon 1,091 posts
- 5. Pat Spencer N/A
- 6. Carter Hart 3,336 posts
- 7. Brunson 7,176 posts
- 8. Knicks 13.9K posts
- 9. Connor Bedard 1,899 posts
- 10. Kentucky 29.1K posts
- 11. Jaylen Brown 8,094 posts
- 12. Celtics 15.5K posts
- 13. Caleb Wilson 1,047 posts
- 14. Notre Dame 37.9K posts
- 15. #DubNation 1,055 posts
- 16. Rupp 2,692 posts
- 17. Bama 24.3K posts
- 18. Van Epps 128K posts
- 19. UConn 8,865 posts
- 20. Duke 29.4K posts