ICode9

精准搜索请尝试: 精确搜索
  • Programming Languages PartC Week2学习笔记——OOP(面向对象) vs FD(函数式)2022-09-14 21:01:11

    @目录OOP Versus Functional DecompositionAdding Operations or VariantsBinary Methods with Functional DecompositionDouble DispatchOptional: MultimethodsMultiple InheritanceMixinsInterfacesOptional: Abstract Methods OOP Versus Functional Decomposition 面向对象与

  • Anaconda (Python distribution)2022-09-03 09:31:18

    Anaconda (Python distribution) Anaconda is a distribution of the Python and R programming languages for scientific computing (data science, machine learning applications, large-scale data processing, predictive analytics, etc.), that aims to simplify pack

  • 0039-Bytes-bytes源码阅读2022-08-30 08:32:56

    环境 Time 2022-05-28 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://github.com/tokio-rs/bytes 目标 实现 bytes.rs 中的一部分方法。 线程安全 实现了两个线程安全的标记接口。 unsafe impl Send for Bytes {} unsafe impl Sync for Bytes {} Hash 实现了 Hash 函数。 imp

  • 配置IDEA格式化HTML代码2022-08-25 16:30:08

    格式化HTML代码 问题: 在IntelliJ Idea中对Ctrl+Alt+L格式化HTML代码时,代码不会自动缩进。 解决方法: File -> Settings -> Editor -> Code Style -> HTML -> Other标签下找到 Do not indent children of删掉html、head、body就可以了

  • Python custom modify the __add__ method All In One2022-08-21 03:00:08

    Python custom modify the add method All In One Python 改写 __add__ 类方法 """ # class Juice: # def __init__(self, name, capacity): # self.name = name # self.capacity = capacity # def __str__(self): # retur

  • consider2022-08-17 09:04:59

    consider [from Latin considerare 'to look at the stars, look at closely, examine', from com- + sidus 'star'] sidereal: of the stars or measured by them ponder [Origin: ponderer 'to weigh', from Latin ponderare, from pondus &#

  • @Data 注解2022-08-15 00:02:40

    简介 对于 Data 注解基本理解而言就是生成 getter & setter 函数 但是经过探究 不单单有getter & setter 还有 toString方法 hashCode 方法 和 equals 方法。 原代码 import lombok.Data; @Data public class TestDTO { private Integer age; private String name; }

  • Solidty0.8-Calling Other Contract2022-08-02 12:33:28

    ontract can call other contracts in 2 ways. The easiest way to is to just call it, like A.foo(x, y, z). Another way to call other contracts is to use the low-level call. This method is not recommended.   // SPDX-License-Identifier: MIT pragma solidity ^0.

  • Solidity0.8.0-Calling Other Contract2022-07-31 22:01:26

    Contract can call other contracts in 2 ways. The easiest way to is to just call it, like A.foo(x, y, z). Another way to call other contracts is to use the low-level call. This method is not recommended.   // SPDX-License-Identifier: MIT pragma solidity ^0

  • YAPI解析 根据需求自行扩展2022-07-14 20:02:47

    import json # 数据路径 path = "e:\\yapi2.json" # 读取文件数据 with open(path, "r", encoding='utf-8') as f: row_data = json.load(f) yapi_list = [] # 读取每一条json数据 for d in row_data[0]['list']: req_body_other = {}

  • Executing tasks in parallel2022-07-04 18:31:37

    Executing tasks in parallel 问题 Ok, so basically I have a bunch of tasks (10) and I want to start them all at the same time and wait for them to complete. When completed I want to execute other tasks. I read a bunch of resources about this but I can'

  • df.where的用法总结2022-07-01 14:32:00

    1、pd.Series( ).where( cond ) 可以过滤不满足cond的值并赋予NaN空值 s = pd.Series(range(5)) s.where(s > 0) 0 NaN 1 1.0 2 2.0 3 3.0 4 4.0 2、pd.Series( ).mask(cond) 使用时,结果与where相反 s.mask(s > 0) 0 0.0 1 NaN 2 NaN 3 NaN 4 NaN 3

  • 值得收藏的python语法总结2022-06-22 15:02:58

    python2早已在 2020 年停止维护,随着Python版本的不断更新迭代,很多旧的语法在可读性与效率上都已经有更好的替代了。当然,大部分的重要特性,例如装饰器、生成器、async等,相信大家都已经了然于心,本文小编就对一些用的稍微少一些、日常看到的代码中不太常见,但是能用得上的语法做一个简

  • Lombok中关于@Data的使用解析2022-06-17 17:36:21

    目录 Lombok @Data注解 内部实现 问题总结 解决方法 Lombok的@Data踩坑记录 证明 小结一下 当你在使用 Lombok 的 @Data 注解时,其实会有一些坑需要关注,今天就让我们来见识一下。 Lombok 先来简单介绍一下 Lombok ,其官方介绍如下: Project Lombok makes java a spicier la

  • 深入C++04:模板编程2022-06-07 12:34:15

  • 02 | C++ 自己动手实现智能指针2022-05-26 17:00:07

    0. 前言 RAII (Resource Acquisition Is Initialization, 资源获取即初始化) 是 C++ 特有的资源管理方式,依托栈和析构函数对所有资源(包括堆)进行管理。实际上就是利用一个类来实现一个来管理资源,将资源和类对象的生命周期进行绑定,这样就可以不用再手动释放资源。 1. auto_ptr 先看

  • chest2022-05-22 22:33:01

    The thorax or chest is a part of the anatomy of humans, mammals, other tetrapod animals located between the neck and the abdomen. In insects, crustaceans, and the extinct trilobites, the thorax is one of the three main divisions of the creature's bod

  • JAVA开发之碰撞算法2022-05-20 21:00:08

    /** *物体的碰撞检测方法 */ public class Aoo { protected int wideth; //对象的宽 protected int heigth; //对象的高 protected int x; //对象的X坐标 protected int y; //对象的X坐标 public boolean isHit(Aoo other) { //设置this为碰撞物 other为被碰

  • JFrame(用C++11特性重构系列——optional的实现)2022-05-14 10:32:02

    1 #pragma once 2 #include <type_traits> 3 #include <utility> 4 #include <stdexcept> 5 6 template<typename T> 7 class Optional 8 { 9 using data_t = typename std::aligned_storage<sizeof(T), std::alignment_of

  • Blogplverification_other2022-05-11 17:32:32

    -------robot--- 当前版本:2.0.8.5 时间:2022-05-30 16:46:40 uid:2375399700,978547414,2132324244,1875967361,2909120962,2104023911,3498766418,2501356800,1274225781 NickName:寒亭机器人群, 006, 008, 007 lowAuthority:潍坊信息化查询支撑1群, 潍坊信息化查询支撑2群,潍坊信息

  • The other half of Nanometer CMOS Analog Design2022-05-03 00:03:07

    模拟设计很大程度上依赖于匹配:偏置,失调,精确度是其中的重要因素之一,很大程度上受版图的影响。 不匹配: 1.波动减少研究(数字电路;良率提高,产品工程) 2.orientation, mirroring, folding,dummies 3.特殊结构、高精度对(QUADs, common centroid matrices,high precision ladders ) 影响

  • ABP.vNext系列之Swagger集成2022-04-27 14:04:31

    ​ 在前后端分离的项目上,后端开发完成的接口,如何快速方便的提供给前端调用,目前使用的较多便是Swagger。实际上ABP也集成了Swagger。 ​ 首先使用 Install-Package Volo.Abp.Swashbuckle 添加nuget包,添加AbpSwashbuckleModule依赖: [DependsOn( //...other dependencies typ

  • 牛客华为机试HJ932022-04-22 07:31:35

    原题传送门 1. 题目描述 2. Solution DFS import sys if sys.platform != "linux": sys.stdin = open("input/HJ93.txt") def dfs(three, five, other): if not other: return sum(three) == sum(five) if dfs(three + other[:1], five, o

  • CF755G PolandBall and Many Other Balls2022-04-15 06:31:06

    CF755G PolandBall and Many Other Balls Link 题目分析: (只会倍增FFT选手前来报道) 首先根据这个题意可以列出一个 dp,设 \(f_{n, k}\) 表示 \(n\) 个球分成 \(k\) 组的方案数。那么我们有如下的式子。 \[f_{(n,k)}=f_{(n-1,k)} +f_{(n-1, k-1)} +f_{(n-2, k-1)} \]简单来说就是枚

  • catalog2022-04-12 22:33:33

    Catalog or catalogue may refer to: Cataloging in Science and technology Library catalog, a catalog of books and other media Union catalog, a combined library catalog describing the collections of a number of libraries Astronom

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

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

ICode9版权所有