![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codewars
YING0x00
这个作者很懒,什么都没留下…
展开
-
Codewars-Format a string of names like ‘Bart, Lisa & Maggie‘(Python)
def namelist(names): #your code here toreturn = '' if(len(names)==1): toreturn = names[0]['name'] elif(len(names)==2): toreturn = names[0]['name'] + ' & ' +names[1]['name'] elif(len(names)>2): for i in ran原创 2020-08-13 10:15:05 · 104 阅读 · 0 评论 -
Codewars-You‘re a square!(Python)
解法一: def is_square(n): if n<0: return False elif n == 0: return True else: i = 1 while i < n: m = i*i if m == n: return True elif m>n: .原创 2020-08-10 16:48:27 · 143 阅读 · 0 评论 -
Codewars-Disemvowel Trolls(Python)
Codewars-Disemvowel Trolls def disemvowel(string): s='aeiouAEIOU' for i in range(len(s)): string = string.replace(s[i],'') return string原创 2020-08-09 21:34:15 · 228 阅读 · 0 评论