def print_doctor(self): logging.info("当前号余量:") x = PrettyTable() x.border = True x.field_names = ["医生姓名", "擅长", "号余量"] for doctor in self.dutys: x.add_row([self.get_doctor_name(doctor), doctor['doctorSkill'], doctor['totalCount']]) print(x.get_string()) pass
def print_doctor(self): logging.info("当前号余量:") x = PrettyTable() x.border = True x.field_names = ["医生姓名", "擅长", "号余量"] for doctor in self.dutys: x.add_row([doctor["doctorName"], doctor['skill'], doctor['remainAvailableNumber']]) print(x.get_string()) pass
def print_doctor(self): Log.info("当前号余量:") x = PrettyTable() x.border = True x.field_names = ["医生姓名", "擅长", "号余量"] for doctor in self.dutys: x.add_row([doctor["doctorName"], doctor['skill'], doctor['remainAvailableNumber']]) print x.get_string() pass
def print_doctor(self): logging.info("当前号余量:") x = PrettyTable() x.border = True x.field_names = ["医生姓名", "擅长", "Duty", "SourceId", " 号余量"] for doctor in self.dutys: x.add_row([ doctor["doctorName"], doctor['skill'], doctor['dutyCodeName'], doctor['dutySourceId'], doctor['remainAvailableNumber'] ]) print(x.get_string())
def print_doctor(self): logging.info("当前号余量:") x = PrettyTable() x.border = True x.field_names = ["医生姓名", "擅长", "号余量"] for doctor in self.dutys: x.add_row([ self.get_doctor_name(doctor), doctor['skill'], "无" if len(doctor['period']) > 0 else "有" ]) print(x.get_string()) pass