有趣的情况!你知道吗
我有分析器.py脚本,使用feedparser库在1中链接到下面的脚本。 当我刚开始的时候,我得到了这样的例外:
Connected to pydev debugger (build 172.3757.67)
pydev debugger: process 20017 is connecting
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_vars.py", line 354, in evaluate_expression
compiled = compile(expression, '<string>', 'eval')
File "<string>", line 1
feedparser.parse(http://www.malware-traffic-analysis.net/blog-entries.rss)
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1134, in do_it
result = pydevd_vars.evaluate_expression(self.thread_id, self.frame_id, self.expression, self.doExec)
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_vars.py", line 356, in evaluate_expression
Exec(expression, updated_globals, frame.f_locals)
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line 3, in Exec
exec(exp, global_vars, local_vars)
File "<string>", line 1
feedparser.parse(http://www.malware-traffic-analysis.net/blog-entries.rss)
^
SyntaxError: invalid syntax
更重要的是,我没有指出:
feedparser.parse(http://www.malware-traffic-analysis.net/blog-entries.rss)
这样的问题出现在第一次导入json的脚本中! 在我的代码中,我还从txt文件中获取http字符串,例如: RSS流程('rsslinks.txt文件') 所以,首先我要解决这个文件中的问题并删除字符串
http[:]//www.malware-traffic-analysis.net/blog-entries.rss
从它那里。但没用!所以我有一个非常好用的脚本,但是它有一些异常并不能阻止它。我在PyCharm调试器中看到的异常。你知道吗
我的规格:
目前没有回答
相关问题 更多 >
编程相关推荐