python 破解老式共享单车密码锁(非电子锁)

思路:穷举方法

1 import itertools as its   # https://pypi.org/project/more-itertools/
2 
3 w = '123456'
4 c = its.product(w,repeat=4)
5 num = 0
6 for i in c:
7     num += 1
8     print("第%s种密码:%s"%(num,i))
9 print('密码输入方式一共%s种'%num)

部分截图

猜你喜欢

转载自www.cnblogs.com/zhang-dan/p/12144224.html