说明:以下是我学习整理的有关Python的相关笔试或者面试题,因为题目是自己解答的,如有错误,欢迎指出! 2018-09-06 1.简述函数式编程 答:在函数式编程中,函数是基本单位,变量只是一个名称,而不是一个存储单元。除了匿名函数外,Python还使用fliter(),map(),reduce( ...
分类:
编程语言 时间:
2020-02-03 16:03:17
阅读次数:
70
Given a m * n matrix mat of ones (representing soldiers) and zeros (representing civilians), return the indexes of the k weakest rows in the matrix or ...
分类:
其他好文 时间:
2020-02-03 09:40:07
阅读次数:
71
创建: 2020/02/03 object的数组 和自带类型的数组一样的声明, 定义, 获取方法 Sample a[2]; //声明 Sample a[2] = { Sample(-1), Sample(-1) }; // 有构析函数的可以初始化 Sample a[2] = { -1, -1 }; ...
分类:
编程语言 时间:
2020-02-03 09:33:10
阅读次数:
71
函数原型:numpy.cumsum(a, axis=None, dtype=None, out=None) 可参考链接:https://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.cumsum.html查看各个参数的含义。 函数 ...
分类:
其他好文 时间:
2020-02-02 13:47:01
阅读次数:
437
原英文帮助文档: class int([x])class int(x, base=10) Return an integer object constructed from a number or string x, or return 0 if no arguments are given. If ...
分类:
编程语言 时间:
2020-02-01 23:04:44
阅读次数:
99
每天玩转3分钟 MyBatis-Plus - 1. 配置环境 每天玩转3分钟 MyBatis-Plus - 2. 普通查询 每天玩转3分钟 MyBatis-Plus - 3. 高级查询(一) 每天玩转3分钟 MyBatis-Plus - 4. 高级查询(二) 每天玩转3分钟 MyBatis-Plus ...
分类:
其他好文 时间:
2020-02-01 22:56:06
阅读次数:
89
浅拷贝: 浅表复制 (shallow copy):对象拷贝时,如果字段是「值类型 (Value Type)」,则直接复制其值 (亦即复制整个字段);若字段为「引用类型 (Reference Type)」,则只复制其「引用 (reference; pointer)」,但不复制引用的字段,亦即若更改了任 ...
分类:
其他好文 时间:
2020-02-01 21:28:04
阅读次数:
75
instanceof 是一个操作符(类似new, ==等) ( Object reference variable ) instanceof (class/interface type) if(a instanceof B){ } 表示:a 是不是 B 这种类型 用法: 1. 一个对象是本身类的一个 ...
分类:
其他好文 时间:
2020-02-01 15:59:23
阅读次数:
51
相关资料准备: (1)GPIO相关API请查看2c-esp8266_non_os_sdk_api_reference_cn手册 (2)GPIO相关寄存器请查看 esp8266-technical_reference_cn 手册 (3)ESP8266 的 16 个通? IO 的管脚位置和名称如下表所示 ...
分类:
其他好文 时间:
2020-02-01 11:05:42
阅读次数:
96
VS2017调试Unity的时候可以直接在启动栏点击附加到Unity。而在VS2019没有,是因为在VS2019中把该调试按钮放在了调试栏中。 首先安装VSUnity相关工具,打开VSInstaller,安装使用Unity的游戏开发。 安装好之后,在unity3D->Edit->Preference ...
分类:
编程语言 时间:
2020-01-31 14:38:02
阅读次数:
892