• 2024-09-04Python 之线程池
    Python之线程池系统启动一个新线程的成本是比较高的,因为它涉及与操作系统的交互。在这种情形下,使用线程池可以很好地提升性能,尤其是当程序中需要创建大量生存期很短暂的线程时,更应该考虑使用线程池。线程池在系统启动时即创建大量空闲的线程,程序只要将一个函数提交给线程池,线
  • 2024-08-03使用Adobe Acrobat Pro DC 把彩色PDF图像改为黑白PDF,且不改变原图像尺寸。
    一、背景:1.编辑要求你在投稿时确定:Informationaboutcolorfiguresasbeingintendedforprintedcolorreproductionortobeprintedinblack-and-white.2.你的图像是彩色的PDF,而且图像的尺寸与A4纸大小不一致.二、解决办法:1. 把你的彩色PDF通过虚拟打印
  • 2023-06-13ios NSString format 保留小数点 float double
     iosNSStringformat保留小数点floatdouble self.orderCost.text=[NSStringstringWithFormat:@"%.1f元",self.order.cost.floatValue];%.1f 表示小数点一位,%.2f表示小数点2位,依次类推.格式定义TheformatspecifierssupportedbytheNSStringformattingmethodsa
  • 2022-10-09PCB 和 PCBA 区别
    一)什么是PCB与PCBA:PCB----PrintedCircuitBoard印刷线路板PCBA----PrintedCircuitBoard+Assembly线路板组装成品二)区别:1.PCB没有任何元器件2.PCBA则是厂商在拿到
  • 2022-08-28[Google] LeetCode 359 Logger Rate Limiter
    Designaloggersystemthatreceivesastreamofmessagesalongwiththeirtimestamps.Eachuniquemessageshouldonlybeprintedatmostevery10seconds(i.e