尝试使用以下命令在自制软件上安装 openssl:
brew install openssl
Run Code Online (Sandbox Code Playgroud)
在make过程中出现以下错误:
clang -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/etc/openssl@1.1\"" -DENGINESDIR="\"/usr/local/Cellar/openssl@1.1/1.1.1l/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG -MMD -MF crypto/rand/randfile.d.tmp -MT crypto/rand/randfile.o -c -o crypto/rand/randfile.o crypto/rand/randfile.c
In file included from crypto/rand/rand_unix.c:38:
/usr/include/CommonCrypto/CommonRandom.h:35:9: error: unknown type name 'CCCryptorStatus'
typedef CCCryptorStatus CCRNGStatus;
^
crypto/rand/rand_unix.c:385:47: error: use of undeclared identifier 'kCCSuccess'
if (CCRandomGenerateBytes(buf, buflen) == kCCSuccess)
^
2 errors generated.
make[1]: *** [crypto/rand/rand_unix.o] …Run Code Online (Sandbox Code Playgroud) 我有两个字典列表,解释某人和他们的角色,例如,下面的 L1 显示在其角色中由 D 指示的驱动程序,而 L2 在其角色中显示由 P 指示的包装工:
L1 = [
{'D': 'Jim Jones'},
{'D': 'Tom Jones'},
{'D': 'Bob Jones'}
]
L2 = [
{'P': 'Jim Jones'},
{'P': 'Bob Jones'}
]
Run Code Online (Sandbox Code Playgroud)
我想合并字典列表,以便键是其角色的合并键,例如:
L3 = [
{'DP': 'Jim Jones'},
{'D': 'Tom Jones'},
{'DP': 'Bob Jones'}
]
Run Code Online (Sandbox Code Playgroud)
顺序无关紧要,这可能是一个新列表,也可以就地完成