- 博客(5)
- 收藏
- 关注
转载 关于pandas中groupby的参数as_index的True与False
关于pandas中groupby的参数as_index选择True和False的区别
2017-10-11 10:04:31
20956
2
转载 廖雪峰python中filter生成素数
def main(): for n in primes(): if n<100: print(n) else: breakdef _odd_iter(): n=1 while True: n=n+2 yield ndef _not_divisibl
2017-09-28 14:29:37
1877
转载 廖雪峰python中filter过滤非回数
回数是指从左向右读和从右向左读都是一样的数:12321,545利用filter()滤掉非回数def is_palindrome(n): return str(n)==str(n)[::-1]output = filter(is_palindrome, range(1, 1000))print(list(output))return str(n)==str(
2017-09-28 14:24:35
583
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅