Keke Palmer had some inspiration to draw upon when she was tapped to play a stripper alongside Jennifer Lopez and Constance Wu in the new flick, “Hustlers,” out Friday.

“I’ve gone to strip clubs a lot. Since I was 18,” Palmer told The Post.

“The dancers are always nice. I always talk to them and they always have fun with me; they make me touch their boobs and stuff. They always do that with the girls when they come to the club.”

Palmer said she was about 19 or 20 years old when a dancer told her, “My stripper name was between Akeelah and Selena because those are my two favorite movies.” (Palmer starred in the movie “Akeelah and the Bee” when she was 11.)

The dancer ended up going with Selena, as in the murdered Tejano singer played on screen by J.Lo. “I’ve got to tell Jennifer that story!” Palmer said with a laugh.

Now she has a brand new forum for sharing her wild tales. On Aug. 26, the actress/singer made her debut as ­co-host of the third hour of “Good Morning America,” with Michael Strahan and Sara Haines.

“It’s really exciting,” said Palmer. “This is something I’ve been wanting for a long time.”

Also exciting for the 26-year-old? Getting to meet Lopez’s fiancé, Alex Rodriguez, on the “Hustlers” set.

“I told him I loved him on ‘Shark Tank,’ ” said Palmer, who added that she had dreamed of presenting her own brilliant idea to the panel.

“I had an idea of shoes, but they’re not shoes. Because I like being barefoot,” she said, pointing to her feet at The Post’s photo shoot at GoldBar. “I thought, wouldn’t it be cool if you had something that only went on the bottom of your foot — so you could still be barefoot, but you have the protection. And I just saw [online that] someone did it. At least I was right about it being a need!”

Palmer has done a few things right in her career. After the Harvey, Ill., native made her 2004 film debut in “Barbershop 2: Back in Business,” her mother, then a high school teacher, and father, who works for a polyurethane company, moved the family to Los Angeles so Palmer could pursue acting.

It paid off: She landed the lead role in the Nickelodeon show “True Jackson, VP,” which ran from 2008 to 2011. She has also starred in the series “Scream Queens,” “Scream” and “Star.”

But there were some rude awakenings along the way, too, she admits.

“I’ve had my own [#MeToo moments],” she said. “Not as a kid, as an adult. I don’t want to say it’s a rite of passage for women, but when you experience that, that’s when you realize that you’re not a little girl anymore. It’s like . . . ‘Oh, I have boobs and a butt and I didn’t realize guys would do anything for that.’ ”

Now she stresses the importance of advising young women on how to avoid compromising situations.

“I had the talk with my younger sister who’s getting ready for college. I said, ‘As you get older, honey, you have to set boundaries for yourself. Maybe don’t go hang out with that guy at midnight, don’t allow somebody to come into your dorm room . . .’. That conversation doesn’t happen enough for young women.”

She has also struggled with her former musical mentor R. Kelly being accused of rampant sexual abuse.

“It’s like somebody in your family doing a crime and you’re just like, damn, I knew him as my family member. It’s really hard. Can you separate the artist from the person? Can you separate the situation from the person you know?” she asked.

“I feel bad about it. I don’t want to call anybody a liar. I don’t want to call the women a liar. I show respect to the women that way. But it sucks.”

Still, it hasn’t soured Palmer on the music industry. She just released a new song, “Twerk N Flirt.”

And the single actress is enjoying her fourth month of being a bona fide New Yorker — even if, she said, she takes flak for her choice of where to reside.

“I’m living in the neighborhood that everyone says they don’t know why I’m living there,” Palmer said of her Midtown pocket.

As for the future, she won’t rule out anything — even reality TV.

“I’m the type of person that never says never. Except porn,” Palmer added. “You’ll never see me do that.”

And if “Real Housewives” comes calling, the superfan already has her tagline in mind: “They say I’m too much, but the real question is: Are you enough?”

All Photos: Annie Wermiel/NYPost.com; Stylist: Stephanie Tricola/Honey Artists; Hair: Ann Jones; Makeup: Mimi Kamara; Stylist Assistant: Natasha Bock; Location: GoldBar, 389 Broome St., NY.