pow or ** for very large number in Python

前端 未结 1 1403

I am trying to calculate some num1**num2 in Python. But the problem is that num1 is 93192289535368032L and num2 is

相关标签:
1条回答
  • You should pass num3 as the 3rd parameter to pow

    pow(...)
        pow(x, y[, z]) -> number
    
        With two arguments, equivalent to x**y.  With three arguments,
        equivalent to (x**y) % z, but may be more efficient (e.g. for longs).
    
    0 讨论(0)
提交回复
热议问题