python简写积累
#列表推导式
self.result = [[j.read() if isinstance(j,cx_Oracle.LOB) else j for j in i] for i in self._cursor.fetchall()]
#三元操作符
symbol = ('>' if symbol == 1 else '<')
serial_list = (get_serial_num(yesterday.strftime("%Y-%m-%d")) if tablename not in out_table_list else get_patient_num(yesterday.strftime("%Y-%m-%d")))