from phe import paillier public_key, private_key = paillier.generate_paillier_keypair() #创建公钥和私钥 secret_number_list = [3.141592653, 300, -4.6e-12] encrypted_number_list = [public_key.encrypt(x) for x in secret_number_list] #加密 [private_key.decrypt(x) for x in encrypted_number_list] #使用私钥解密 a, b, c = encrypted_number_list a_plus_5 =a + 5