发表日期: 2022-04-22 15:14:23 浏览次数:85
【沁阳网站建设】沁阳做一个网站大概需要多少钱?

2018年,沁阳市粮食种植面积69.39万亩。其中,夏粮种植面积34.74 万亩,秋粮种植面积34.65万亩。
2018年,沁阳市粮食总产量34.19万吨,比上年增加0.1万吨,增产0.3%。其中,夏粮产量17.49万吨,比上年减少0.57万吨,减产3.2%;秋粮产量16.70万吨,比上年增产0.67万吨,增产4.2%。 [1]
第二产业
2018年,沁阳市工业增加值259.01亿元,比上年增长7.6%,对经济增长的贡献率为75.6%。规模以上工业增加值比上年增长8.0%。规模以上工业产品销售率为99.4%。
建筑业增加值7.50亿元,比上年下降13.0%。商品房销售面积44.73万平方米,比上年增长31.2%。 [1]
第三产业
2018年,沁阳市批发和零售业增加值51.43亿元,比上年增长5.0%;住宿和餐饮业增加值12.24亿元,增长6.1%。全年社会消费品零售总额110.26亿元,比上年增长11.5%。
附上另一种角度的性能分析,当需要对字符串对象的长度进行变化时,用 + 拼接的性能在循环时就会慢的慢的多,实际上 + 号拼接字符串也是通过 StringBuild 或 StringBuffer 实现的,但当进行频繁的修改本身时,+ 拼接会比直接用方法拼接产生更多的中间垃圾对象,耗用更多的内存,因此更推荐使用 StringBuild。其实我认为上述案例的性能分析是没有意义的,如果明确了要拼接的字符串的话,完全可以直接使用两种如下代码:
result =result + "This is esting the difference between String and StringBuffer ";或result.append("This is esting the difference between String and StringBuffer" );public class Main {
public static void main(String[] args){
String result1 = null;
StringBuffer result = new StringBuffer();
long startTime = System.currentTimeMillis();
for(int i=0;i<5000;i++){
result1 += "This is"
+ "testing the"
+ "difference"+ "between"
+ "String"+ "and"+ "StringBuffer";
}
long endTime = System.currentTimeMillis();
System.out.println("字符串连接"
+ " - 使用 + 操作符 : "
+ (endTime - startTime)+ " ms");
long startTime1 = System.currentTimeMillis();
for(int i=0;i<5000;i++){
result.append("This is");
result.append("testing the");
result.append("difference");
result.append("between");
result.append("String");
result.append("and");
result.append("StringBuffer");
}
long endTime1 = System.currentTimeMillis();
System.out.println("字符串连接"
+ " - 使用 StringBuffer : "
+ (endTime1 - startTime1)+ " ms");
}}