上一页 1 ··· 5 6 7 8 9
摘要: 1、遍历数组 a、传统方式 1 // String[] strings = {"甲", "乙", "丙", "丁"}; 2 String[] strings = new String[]{"甲", "乙", "丙", "丁"}; 3 for (int i = 0; i < strings.lengt 阅读全文
posted @ 2020-03-25 22:58 摩诘 阅读(721) 评论(0) 推荐(0)
摘要: 当我们输出的小数不知道有几位小数,也不知道后面有没有带零,去掉后面多余零可以采用以下方法。在实际使用中,多用于小数转百分数,百分数前面的小数乘以100后转String输出,输出的String很多带零,可以用此方法先去掉小数多余的零再转String。 1 DecimalFormat decimalFo 阅读全文
posted @ 2020-03-25 00:55 摩诘 阅读(4151) 评论(0) 推荐(0)
摘要: using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System 阅读全文
posted @ 2019-05-17 18:02 摩诘 阅读(2163) 评论(1) 推荐(0)
上一页 1 ··· 5 6 7 8 9