如何在Windows中运行python doctest?

我了解了如何在Unix实验室计算机上执行此操作,并且所有命令均不起作用?
我发现了有关修改路径目录的其他堆栈溢出问题,并且当我在Cmd中键入python时,python程序开始工作.但是,我不知道如何打开要测试的文件?
命令仍然是-m doctest file_to_be_tested吗?
另外,在打开python之前,我是否必须转到目录中的该点?
我尝试过的东西是:
1)首先打开python,然后转到我的文件所在的位置,然后尝试-m doctest命令
2)首先转到目录位置,然后打开python,然后打开-m doctest命令
我很困惑.
如果有所作为,我正在使用sublime作为文本编辑器
解决方法:
Somethings that i have tried are: 1) opening python first, and then going to where my file is, and then trying the -m doctest command 2) going to the directory place first, and then opening python, then the -m doctest command
-m是命令行开关,在解释器内部没有任何意义.
您需要转到包含要测试并运行的文件的目录:
> python -m doctest file-to-test