为什么我算不是等于0呢
Python 2.7.3 |EPD_free 7.3-2 (32-bit)| (default, Apr 12 2012, 14:30:37) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> def qiuni(a_num,b_to_mod):
a_tmp=a_num;
for i in range(1,b_to_mod):
if (a_tmp*a_num)%b_to_mod==1:
return i+1
销碧档 else:
a_tmp=(a_tmp*a_num)%b_to_mod
亏乱 慧雀
>>> qiuni(28,83)
41
>>> qiuni(23,83)
41