文章目录 string转换成long类型 string转换成long类型 string str="123456"; 方法一: long a=long.Parse(str); 方法二: long b=Convert.ToInt64(str);