#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. Kalani 7,609 posts
- 2. Stein 14.6K posts
- 3. Penn State 10.2K posts
- 4. Crumbl N/A
- 5. Hartline 4,394 posts
- 6. REAL ID 8,024 posts
- 7. Milagro 33.5K posts
- 8. Vanguard 15.6K posts
- 9. Merry Christmas 57.3K posts
- 10. Sidney Crosby N/A
- 11. FEED THE STUDS N/A
- 12. Admiral Bradley 15.4K posts
- 13. Monday Night Football 3,217 posts
- 14. TOP CALL 12.3K posts
- 15. Jaxson Dart 4,450 posts
- 16. Cyber Monday 63.5K posts
- 17. Abdul Carter 2,080 posts
- 18. #OTGala11 194K posts
- 19. AIDS 70.7K posts
- 20. Shakur 8,994 posts