筛选素数

    xiaoxiao2021-08-25  68

    def isprime(n): return 0 not in map(lambda x : n%x,range(2,n)) print filter(isprime,range(1,101)) 利用map和filter编写的筛选素数的函数 

    转载请注明原文地址: https://ju.6miu.com/read-677094.html

    最新回复(0)