zoukankan      html  css  js  c++  java
  • 在.net中使用split方法!

    今天突然又要用到这个方法来实现功能,想了半天,又忘了以前是怎么做的了,没办法,还是找百度大哥,百度了一下,结果出来,呵呵!!!方便,,不过,,是别人做的例子,还要简单看一下,,这就是写博客的好处,以后有问题了找一下自己的博客,什么都有了!!!呵呵!不说了,把做法写上,继续工作!!!

    string str="aaa|bbb|ccc";
    string[] sArray=str.Split(new char[2]{'|','s'})

    foreach(string i in sArray) Response.Write(i.ToString()+"<br>")

    string delpro = Product.DelProduct(strWhere);
                string[] delArray = delpro.Split(new char[1] { ',' });
                foreach (string del in delArray)
                {
                    Function.DelFile(del, "../UserFiles/");
                }

  • 相关阅读:
    CodeForces
    hdu4003 树形dp
    hdu2196
    poj2486
    hdu1502 树形dp入门题
    cf 686D
    bzoj2763 分层图
    hdu4424 并查集+贪心+思维
    poj1734 最小环+输出路径
    集训题解1
  • 原文地址:https://www.cnblogs.com/hateyoucode/p/1448510.html
Copyright © 2011-2022 走看看