Mayor Bloomberg fired a parting shot Friday at the critics who have mocked his tenuous command of Spanish, saying they should get a life.

Bloomberg — whose efforts to speak the language at press conferences have been widely mocked and even inspired a Twitter account @ElBloombito — delivered the message in English during his weekly radio show.

“These people that make fun of me, you know, what do I care . . . Why don’t they just get a life?” said the mayor, who has been taking Spanish lessons for several years.

Bloomberg made the comment as he talked with host John Gambling about the imminent end of his ­12-year mayoral reign.

Besides, Hizzoner said, his Spanish is “getting better.’’

He said he spent Thursday night with his Spanish instructor and other students.

“We stood around talking in Spanish [and] I wasn’t that far behind. I’m OK [except] if you speak very fast or you don’t speak loudly — you know, at my age I don’t hear quite as well, but that’s true in English,” Bloomberg cracked.

The mayor has demonstrably improved his Spanish skills, fielding questions from Spanish-language reporters in their native tongue and answering in Spanish with only the occasional lapse back into English.

It’s his accent and diction — which remained rooted in the English language — that have inspired the jokes.

Rachel Figueroa-Levin, who launched the parody @ElBloombito Twitter account in 2011, now has 78,527 followers.

“Los hills estan alivero con los sondo de music,” she wrote Thursday night, mocking what the mayor might have written while watching “The Sound of Music” on TV.

Gambling joked that he often tells people that Bloomberg’s biggest disappointments are his Spanish and his golf game.

Looking forward, the mayor maintained an optimistic approach to both.

“Whatever I do next will be better than what I’ve done in the past. I know tomorrow’s going to be better than today. I know my Spanish is going to be better and my golf swing’s going to be better. Hope springs eternal,” he said.

On a more serious note, Bloomberg said he has spent his final days in City Hall trying to help staffers find jobs, and contacting the families of the 69 city workers who died in the line of duty during his administration.

“I’m not going to forget and I’m going to try and remind people that people made sacrifices,” he said.