enter image description here,然后我使用h5py.File("/content/drive/My Drive/sub_0.hdf", 'r')读取Google Drive中的文件但出现错误"OSError: Unable to openfile (fileOpen not found)“。
如果我使用with语句打开文件,是否可以捕获open调用和相关的__enter__调用引发的异常,而不捕获with块中的代码引发的异常?try: print("Pretend I have a bunch of lines here and# ...a bunch more lines of code here... print("Error ope