ICode9

精准搜索请尝试: 精确搜索
  • C# Linq2021-08-12 18:04:03

    // 注意文件开头: // using System.Linq; int[] scores = new int[] { 97, 92, 81, 60 }; System.Collections.Generic.IEnumerable<int> scoreQuery = from score in scores where score > 80 select score; string logStr = ""; foreach (int i

  • 使用线程池与CountDownLatch多线程提升系统性能2021-07-08 17:08:56

    下面这个业务场景,大家可能都会遇到,在遍历一个list的时候,需要对list中的每个对象,做一些复杂又耗时的操作,比如取出对象的uid,远程调用一次userservice的getUserByUid方法,这属于IO操作了,可怕的是遍历到每个对象时,都得执行一次这种RPC的IO操作(甚至不止一次,因为可能还有别的接口需要去调

  • pathon基础22019-08-28 22:51:44

    支持不同文件,不同sheet页 import xlrdimport xlwtimport osimport time; #往日志文件中追加内容函数def writeLogfile(filename,content):    file=open(filename,'a') #以追加方式打开日志文件    time_now= time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())  #系统

  • C#写入错误日志2019-07-10 09:06:53

    原文链接:http://www.cnblogs.com/TSPWater/archive/2010/08/27/1809995.html  1  public void WriteLog(Exception ex) 2     { 3         try 4         { 5               String FolderPath = Co

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有