![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
再别秀了
各路大佬,再别秀了,跟不上了。
展开
-
Codewars_Sum of Digits / Digital Root
digital_root(16) => 1 + 6 => 7 digital_root(942) => 9 + 4 + 2 => 15 ... => 1 + 5 => 6 digital_root(132189) => 1 + 3 + 2 + 1 + 8 + 9 => 24 ... => 2 + 4 => 6 digital_...原创 2019-12-01 15:48:15 · 262 阅读 · 0 评论 -
Codewars_Disemvowel Trolls
Codewars学习记录 这个题叫Disemvowel Trolls,就是说现在网上有一群喷子,常用的方法是移除所有的元音字母,然后返回这个字符串就可以了。 我的写法是: Python3.4.3 // Disemvowel Trolls def disemvowel(string): for i in 'aeiouAEIOU': string = string.repla...原创 2019-12-01 14:26:22 · 191 阅读 · 0 评论