考虑以下法典:
fileHandle = open ( test8.pem , w )
fileHandle.write (data)
pub_key = M2Crypto.RSA.load_pub_key(open( test8.pem ))
产生以下错误:
File "/usr/lib/python2.4/site-packages/M2Crypto/RSA.py", line 343, in load_pub_key
bio = BIO.openfile(file)
File "/usr/lib/python2.4/site-packages/M2Crypto/BIO.py", line 186, in openfile
return File(open(filename, mode))
IOError: [Errno 2] No such file or directory:
我如何将档案输入<条码>载荷_pub_key。 这种方法可以简单地通过档案名称来查阅?