BEIJING—China said that rapid yuan appreciation in the near term is out of the question as it would harm China's economic growth, in one of the strongest responses yet to U.S. pressure for a faster rise in the currency.

The comments by a spokeswoman for the Ministry of Foreign Affairs on Wednesday reflect China's growing anxiety as its domestic economy slows and demand for its exports is threatened by economic stagnation in Europe and the U.S.

The...