Twitter pervert: Anthony Weiner announcing his resignation from Congress In June 2011, in the wake of being caught lying about those photos. Photo: Getty Images

So Anthony Weiner is contemplating sticking his, um, oar into the 2013 New York City mayoral waters, and where’s the surprise in that?

Nowhere, that’s where: It’s always been about Anthony, he of the wry little smile and the smartest-man-in-the-room tilt to his stance.

And who’s to blame him if he should run?

History teaches that New Yorkers will put up with just about anything — how else to explain the City Council? — so even the prospect of an internationally infamous Twitter pervert moving into Gracie Mansion probably won’t faze them.

It’s not so much that voters are forgiving as it is that they don’t expect much from their public servants, other than lush social programs — and so they are generally inclined to overlook outbursts of buffoonery.

Weiner, of course, seems to have been purpose-built to test that forbearance.

His political career comprised mostly of walking in Chuck Schumer’s footsteps. And he’s never been on a private-sector payroll — discounting the recent consultancies that naturally accrue to a man married to a woman, Huma Abedin, who’s tight as a tick with Hillary Clinton, a morning-line favorite for the presidency in 2016.

As for the Twitter episode, it’s to be hoped that even New Yorkers aren’t so cynical that they’d elect as mayor an Internet iteration of the seedy man in the stained raincoat.

But is hope enough? The news lately suggests otherwise.

The state Penal Law is a brick of a law book that’s growing thicker every year as New York struggles with the ingenuity of its criminal class — to cope with anti-social behavior of a sort that never occurred to earlier generations.

But the Public Officers Law — a slender reed of a text in comparison — is on the same trajectory, and this speaks directly to the rapidly fading quality of New York’s, well, public officers.

“When it comes to public integrity,” Gov. Cuomo said earlier this week, “you can’t have enough police officers on the beat, right? You can’t have enough sets of eyes.”

But that Cuomo felt compelled to say it regarding New York’s public-servant class is noteworthy — even if he’s a little late to the dance.

Cuomo, after all, has been a heavy Albany player, off and on, since the early ’80s; no one knows better than he that government in New York is now mostly about advancing the personal and political interests of its leaders — all of its leaders — and only coincidentally about public service.

Exhibit A: Assemblyman Eric Stevenson few up steeped in Bronx politics, and he seems to have paid attention. Prosecutors say he came to office in 2011 with his hand out and his palm up — demanding cash to help a couple of sketchy characters corner the local adult-day-care market.

This makes no sense, except that Medicaid money apparently was involved, and then it makes a ton of sense — especially in The Bronx, where Medicaid skimming has been a staple of the political economy almost since the program’s inception in the mid-’60s.

The politicians get to dip their beaks. The voters get ruinously expensive clinics — too many of them simply “treatment” mills. And the taxpayers get . . . well, they don’t seem to mind.

Yes, Stevenson is small potatoes. But is there really a need to catalogue the full range of ripoffs so docilely acquiesced in by the public — largely because voters believe that some day, in some way, it’ll be their beaks in the dish?

And the odds are, in some small way, that they will be.

So, in context, it’s no wonder at all that Anthony Weiner is plotting a redemptive comeback.

To paraphrase Mencken, no one ever went broke underestimating the self-interested tolerance of the New York electorate.