#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. Good Monday 24.9K posts
- 2. Happy New Month 269K posts
- 3. #MondayMotivation 5,130 posts
- 4. #ForTT_Telegram_sam11adel N/A
- 5. Broncos 49K posts
- 6. Cyber Monday 23.5K posts
- 7. #MondayVibes 2,241 posts
- 8. Victory Monday N/A
- 9. Mariota 13.5K posts
- 10. #WorldAIDSDay 25.2K posts
- 11. Root 39.6K posts
- 12. Bo Nix 10.4K posts
- 13. #RaiseHail 5,888 posts
- 14. Commanders 34K posts
- 15. Chrisean 10.5K posts
- 16. BURKS 16.3K posts
- 17. Deebo 3,172 posts
- 18. Ertz 3,156 posts
- 19. Terry 20K posts
- 20. Stacey 17.3K posts