import subprocess
path = '/home/test/net.keystore
text = subprocess.Popen(['keytool', '-list', '-v', '-keystore', path], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
file = text.stdout.read().decode().splitlines()
print file
通过子进程我试图获取密钥库证书详细信息我不知道密钥库的密码。如果我按两次“输入键”,则输出正在处理
有没有办法在python中自动化“输入密钥”?