我在Python中遇到了一个非常简单但令人沮丧的问题。我正在尝试在Windows上从Python调用一个java程序。以下是我正在使用的:
os.system("java -classpath . HW4")
尽管我已经验证了我在正确的目录中,并且能够在dos提示符中执行这一行,但我还是得到了类未找到的异常。
降级到Python的2.7版本,现在可以使用