#pythonのgw kết quả tìm kiếm
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. Cyber Monday 58.2K posts
- 2. Milagro 28K posts
- 3. Admiral Bradley 8,964 posts
- 4. Kalani 4,724 posts
- 5. REAL ID 6,218 posts
- 6. TOP CALL 11.9K posts
- 7. MRIs 4,106 posts
- 8. Hartline 3,639 posts
- 9. #GivingTuesday 3,781 posts
- 10. Jason Lee 2,302 posts
- 11. Penn State 8,157 posts
- 12. Shakur 7,924 posts
- 13. Adam Thielen 3,276 posts
- 14. Brent 9,937 posts
- 15. #jimromeonx N/A
- 16. Check Analyze 1,145 posts
- 17. Token Signal 4,393 posts
- 18. Merry Christmas 45.2K posts
- 19. MSTR 33.5K posts
- 20. Trump's MRI 17.8K posts