摘要: abstract as base bool break byte case catch char checked decimal default delegate continue double do else enum ecent explicit finally fixed float for 阅读全文
posted @ 2020-10-08 08:51 浪漫大尾巴狼 阅读(1514) 评论(0) 推荐(0)
摘要: 取第一位和最后一位: str.substring(0, 1) str.substring(str.Length-1, 1) 来自 https://zhidao.baidu.com/question/423908312.html 阅读全文
posted @ 2020-10-07 16:48 浪漫大尾巴狼 阅读(2847) 评论(0) 推荐(0)
摘要: 在C#中,要将一个字符串或浮点数转换为整数,基本上有三种方法: (1)使用强制类型转换:(int)浮点数 (2)使用Convert.ToInt32(string) (3)使用int.Parse(string)或int.TryParse(string,out int) 在实际使用时,当要转换的字符串或 阅读全文
posted @ 2020-10-07 16:43 浪漫大尾巴狼 阅读(7876) 评论(0) 推荐(0)