import pymysql

conn = pymysql.connect(host='85.215.144.168', port=3306, user='asesoft', password='Pantera1', database='pastelerias', cursorclass=pymysql.cursors.DictCursor)
with conn.cursor() as cur:
    cur.execute("SELECT id, serie, numero, fecha FROM ge_albaranes WHERE serie='26' AND numero='436'")
    print("436:", cur.fetchall())
    cur.execute("SELECT id, serie, numero, fecha FROM ge_albaranes WHERE serie='26' AND numero='437'")
    print("437:", cur.fetchall())
    cur.execute("SELECT id, serie, numero, fecha FROM ge_albaranes WHERE serie='26' AND numero='438'")
    print("438:", cur.fetchall())
