当我上传并尝试使用以下代码打开文件时,我收到此错误:
IOError: [Errno 2] 没有这样的文件或目录
我的代码如下:
from google.colab import files
#upload file
uploaded = files.upload()
# Open file
f = open(uploaded['small.txt'], 'r')
# Feed the file text into findall(); it returns a list of all the found strings
strings = re.findall(r'ne\w', f.read())