首页 > 解决方案 > 在 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'

我怎样才能让它工作?

标签: pythonmacosfileconsole

解决方案


推荐阅读