#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 5,524 posts
- 2. REAL ID 6,900 posts
- 3. Vanguard 12.1K posts
- 4. Milagro 29.5K posts
- 5. Penn State 8,760 posts
- 6. Cyber Monday 60K posts
- 7. TOP CALL 11.9K posts
- 8. Admiral Bradley 10.6K posts
- 9. MRIs 4,580 posts
- 10. Hartline 3,818 posts
- 11. Merry Christmas 49.7K posts
- 12. #OTGala11 123K posts
- 13. #GivingTuesday 4,052 posts
- 14. Jason Lee 2,338 posts
- 15. Shakur 8,275 posts
- 16. Jay Hill N/A
- 17. Brent 10K posts
- 18. MSTR 34.6K posts
- 19. Token Signal 4,587 posts
- 20. Check Analyze 1,196 posts