网址http://www.codewars.com/dashboard,挺好的学习编程的地方,比LeetCode简单,且做完有答案。
更新日期:2018-06-28
codewars知识点汇总:
1 、 ''.join(['a','s'])
2、 map(fun,iterable),比如map(int,str(345))
3、' '.join(str(ord(c) - 96) for c in text.lower() if c.isalpha())
4、获取字典值最小的key值 >>> d = {1:1, 2:0, 3:2} {1: 1, 2: 0, 3: 2} >>> min(d, key=d.get) 2