#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 25.8K posts
- 2. #MondayMotivation 5,290 posts
- 3. Happy New Month 272K posts
- 4. #ForTT_Telegram_sam11adel N/A
- 5. #MondayVibes 2,305 posts
- 6. Cyber Monday 24K posts
- 7. Broncos 49.2K posts
- 8. Broncos 49.2K posts
- 9. Victory Monday N/A
- 10. Mariota 13.6K posts
- 11. #WorldAIDSDay 25.7K posts
- 12. Root 39.9K posts
- 13. Bo Nix 10.4K posts
- 14. #RaiseHail 5,903 posts
- 15. Commanders 34.1K posts
- 16. Chrisean 10.6K posts
- 17. Thumb 10.7K posts
- 18. Honduras 191K posts
- 19. Stacey 17.5K posts
- 20. Ertz 3,161 posts