在 Google Colab 中打开 .npy 或 .txt 文件
Open .npy or .txt files in Google Colab
我是 python 的新手,我知道有很多帖子解释了如何将文件上传到 Google Colab(第 1 步),但我找不到关于如何实际使用它们的任何信息在代码中(第 2 步)。
谁能一步一步地解释我如何从第 1 步到在我的代码中拥有一个功能齐全的 numpy 数组?
非常感谢!
Tried to upload a print screen image that has the downloaded files tab on the left and the code on the right illustrating what i described above
您的路径中缺少前导 /
。尝试 /content/export.txt
我是 python 的新手,我知道有很多帖子解释了如何将文件上传到 Google Colab(第 1 步),但我找不到关于如何实际使用它们的任何信息在代码中(第 2 步)。 谁能一步一步地解释我如何从第 1 步到在我的代码中拥有一个功能齐全的 numpy 数组?
非常感谢! Tried to upload a print screen image that has the downloaded files tab on the left and the code on the right illustrating what i described above
您的路径中缺少前导 /
。尝试 /content/export.txt