
算法
地狱恶狼
这个作者很懒,什么都没留下…
展开
-
使用python的pycryptodome包进行生成私钥公钥文件,对数据加密解密签名验签.直接上完整的代码.
""" AsymmetricEncryption类可以做这些 生成私钥公钥对 非对称加密/解密/签名/验签名 记得运行这个 pip install pycryptodome 以安装所需的包"""from Crypto.PublicKey import RSAfrom Crypto.Cipher import PKCS1_OAEPfrom Crypto.Signature import pkcs1_15from Crypto.Hash im.原创 2021-06-08 16:16:12 · 1005 阅读 · 0 评论 -
桶排序
#桶排序L=[2,6,3,1,3,4,6,2,2,8,5]tong=(max(L)-min(L)+1)*['']for i in L: if not tong[i+min(L)-2]:tong[i+min(L)-2]=[i] #希望去重把下面这句注释 else:tong[i+min(L)-2].append(i)[[print(i,end=...原创 2018-04-14 08:40:44 · 159 阅读 · 0 评论 -
快速排序
原创 2018-04-14 08:38:53 · 140 阅读 · 0 评论