string MyString = "中华人民共和国";
string MyInfo = "\n替换前:" + MyString;
 //显示“中华民国”
MyInfo += "\n替换后:" + MyString.Replace("华人民共和", "华民");           
MessageBox.Show(MyInfo, "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);

相关文章:

  • 2022-12-23
  • 2022-02-05
  • 2022-02-09
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2021-10-15
相关资源
相似解决方案