def call_login(self): """ 登录回调方法 :return: """ login = GoLogin(self.httpClint, self.confUrl) login.go_login()
def call_login(self): """登录回调方法""" go_login()
def call_login(self): """登录回调方法""" login.go_login(self.ticket_config).login()
except PassengerUserException as e: print(e.message) break except ticketConfigException as e: print(e.message) break except ticketIsExitsException as e: print(e.message) break except ticketNumOutException as e: print(e.message) break except ValueError as e: if e.message == "No JSON object could be decoded": print("12306接口无响应,正在重试") else: print(e.message) except KeyError as e: print(e.message) except TypeError as e: print(e.message) except socket.error as e: print(e.message) if __name__ == '__main__': login.go_login().login() # a = select('上海', '北京') # a.main()