FileNotFoundException Python中的帮助

2024-10-01 13:31:17 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的代码:

try:
    import clr, sys
    from xml.dom.minidom import parse
    import datetime
    sys.path.append("C:\\teest")
    clr.AddReference("TCdll")
    from ClassLibrary1 import Class1
    cl = Class1()
except ( ImportError ) :
    print "Module may not be existing " 

我的TCdll在C:\test中。我只是把它作为C:\t来测试错误。在

例外情况是:

^{pr2}$

如何处理此异常??在

立即需要帮助


Tags: path代码fromimportdatetimeparsesysxml