President Trump walks out to welcome Danish Prime Minister Lars Lokke Rasmussen upon his arrival outside the West Wing of the White House on April 20. (Jabin Botsford/The Washington Post)

President Trump weighed in on French politics Friday, asserting on Twitter that “another terrorist attack” in Paris would “have a big effect on the presidential election!”

While playing the pundit, Trump did not mention any of the 11 hopefuls by name.

However, Marine Le Pen, one of the leading candidates in the race, has echoed many of Trump’s campaign themes, including dire warnings that her country is losing its identity. Le Pen, leader of the far-right National Front, has also been sharply critical of “Islamist terrorism” for weeks.

In his tweet, Trump said “the people of France will not take much more of this,” referring to a deadly shootout on the Champs-Elysees, Paris’s most famous avenue, Thursday night that claimed the life of a police officer.

Voters in France go to the polls Sunday.

Asked during a news briefing Friday about what the president meant by his tweet, White House press secretary Sean Spicer declined to shed light on Trump's preference in the French elections.

"I think major events clearly have effects on voters' attitudes," Spicer told reporters Friday. "But I’m not going to weigh in about what the voters of France will decide on Sunday."

In tweets Friday morning, Trump also touched on tensions with North Korea, reasserting his view that China could be a large help in bringing the authoritarian regime to heel.

“China is very much the economic lifeline to North Korea so, while nothing is easy, if they want to solve the North Korean problem, they will,” Trump said on Twitter.

Trump has previously stated that the United States would be willing to take unilateral action to contain North Korea’s nuclear ambitions. After a recent summit in Florida with Chinese President Xi Jinping, however, Trump has expressed a greater interest in working with China.

Abby Phillip contributed to this report.