【问题标题】:Open .npy or .txt files in Google Colab在 Google Colab 中打开 .npy 或 .txt 文件
【发布时间】:2019-02-16 17:24:28
【问题描述】:

我是 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

【问题讨论】:

    标签: python jupyter-notebook google-colaboratory


    【解决方案1】:

    您的路径中缺少前导 /。试试/content/export.txt

    【讨论】:

    • 它没有解决问题...但感谢您的回答!
    • 问题解决了!我已将文件保存为数组字典,这导致了错误。一旦我保存为 ndarray 它就起作用了!非常感谢您的提示,这是解决问题的重要一步!
    猜你喜欢
    • 1970-01-01
    • 2017-03-24
    • 2020-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-26
    • 2017-05-13
    • 1970-01-01
    相关资源
    最近更新 更多