Преглед изворни кода

if filter()的判断在python3中返回为filter对象,即使为空,if判断也会判定为True

bobobo80 пре 9 година
родитељ
комит
a6d40f7970
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Util/WebRequest.py

+ 1 - 0
Util/WebRequest.py

@@ -79,6 +79,7 @@ class WebRequest(object):
                         raise Exception
                 return html
             except Exception as e:
+                print(e)
                 retry_time -= 1
                 if retry_time <= 0:
                     return