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)

部分截图

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

上一篇:如何在Ubuntu上编译.java文件?


下一篇:PAT Advanced 1101 Quick Sort (25分)