Parents pick up their children from school as police investigate a shooting in Brooklyn.Dennis A. Clark

A 14-year-old girl was shot in the leg and an 18-year-old boy in the ankle near a Brooklyn high school right after dismissal Thursday afternoon, cops said.

The teens were wounded at President Street and Franklin Avenue in Crown Heights at about 4 p.m., a block from Clara Barton HS, according to law-enforcement sources. Both were treated for non-life-threatening injuries at Kings County Hospital.

The shooting stemmed from an argument between Clara Barton students and a teenage boy from nearby Lincoln HS, sources said.