C#字符串截取和转换为数值
2021-01-21 23:12
阅读:610
标签:color col string ble parse 字符串截取 字符 substr style int num; C#字符串截取和转换为数值 标签:color col string ble parse 字符串截取 字符 substr style 原文地址:https://www.cnblogs.com/sunsuoli/p/12103210.htmlstring source_string;
string substring;
substring=source_string.Substring(a,b);//从a开始,截取b长度的字符串
int num=int.Parse(source_string);//int可以改为float、double
评论
亲,登录后才可以留言!