没解决:RuntimeWarning: tp_compare didn't return -1 or -2 for exception

RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  if (dict_results.has_key(camera_id) == False):

 有人提出如下跟踪办法:

mkvirtualenv MyFlaskApp
pip install -r requirements.txt

就本案例来说,has_key()改用 in dict.keys(),有改善。这一句解决了,别的出来了。不知何故。

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/88861044
今日推荐