|a+b+2|+(ab-1)²=0
∵|a+b+2|≥0,(ab-1)²≥0
∴a+b+2=0且ab-1=0
即a+b=-2且ab=1
(a+b)²/3ab-3ab/(a+b)+1
=(-2)²/(3×1)-3×1/(-2)+1
=4/3+3/2+1
=23/6
|a+b+2|+(ab-1)²=0
∵|a+b+2|≥0,(ab-1)²≥0
∴a+b+2=0且ab-1=0
即a+b=-2且ab=1
(a+b)²/3ab-3ab/(a+b)+1
=(-2)²/(3×1)-3×1/(-2)+1
=4/3+3/2+1
=23/6