111,126
社区成员
发帖
与我相关
我的任务
分享 private void Form1_Load(object sender, EventArgs e)
{
String str = "A:数据库就是数据库。~B:存数据的容器。";
int len = str.Split('~').Length;
String[] s = str.Split('~');
for (int i = 0; i < len; i++)
{
listBox1.Items.Add(s[i].ToString());
}
}