• python质数如何判断

    python质数判断的方法:首先运用python的数学函数;然后单行程序扫描素数,代码为【[ p for p inrange(2, N) if 0 not in [ p% d for d in range(2,int(sqrt(p)】。

    2022-4-20
    124 0 0