python - 在 python 控制台中使用现有文件
问题描述
在终端 (Mac) 上运行 Python 3.9.6。
我似乎无法弄清楚如何使用 python 控制台中的现有文件。我现有的文件名为sim.txt
.
>>> wv.evaluate_word_pairs("sim.txt")
得到我FileNotFoundError: [Errno 2] No such file or directory: 'sim.txt'
。
我怎样才能让它工作?
解决方案
推荐阅读
- state - 如何在 Flutter 中滚动时保持状态?
- matlab - 如何在matlab中的绘图下方附加数据表?
- android - 如何通过 Android Debug Bridge 启动 Android sims
- angular - 如何在不使用 HTTP 方法的情况下向订阅者发送数据?
- javascript - js遇到问题
- java - Spring Batch CommandLineJobRunner:错误:ClassNotFound
- android - Android:将 ListView 项目的复选框状态保存到自定义对象的实例中
- keras - keras,如何在训练期间解释每个时期每个批次的输出(损失,acc 是根据什么数据计算的)
- postgresql - 运行匿名块时出错
- url - vcl中的hmac认证