European stocks gained as bank shares rebounded, after posting their biggest weekly decline since April on worries about disruption from artificial intelligence.