2016年5月29日 星期日

C# 字串切割小訣竅

通常C#字串切割大家都知道使用Split函數。 例如cr
 
string[] tokens = stringVariable.Split('\r');
那如果,可以試試以下的方法
 
stringVariable.Split(new string[] { "\r\n" }, StringSplitOptions.None);

沒有留言:

張貼留言

CentOS Python 3.7 安裝方式

有些開發的程式在python 3.8的檔案套件不相容,例如pymssql,等。 所以如果不建置虛擬環境的話才特意安裝3.7版本的python 安裝流程如下 # 先進行yum套件的update yum update -y # 安裝相依性套件 yum install gcc o...