codewars部分习题python代码(一)(难度:6kyu-8kyu)
最近在刷codewars的python习题,花了三天刷到五级后,后面的题就不太会做了…所以我接下来记录一些题目的做法,以做笔记整理。学习他人的代码也是增长经验的过程。
注:括号里面的kyu代表题目难度,其中8级最简单,1级最难。
题目1:Multiples of 3 or 5(6kyu)
题目网址
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum o
原创
2020-11-30 17:50:03 ·
937 阅读 ·
0 评论