高阶函数 函数在Python中是一等公民 函数也是对象,可调用的对象 函数可以作为普通变量,参数,返回值等 成为高阶函数的必要条件: 接收一个或多个函数作为参数 输出一个函数 示例: def counter(base): def inc(step=1): nonlocal base base += ...
分类:
编程语言 时间:
2020-04-18 23:15:21
阅读次数:
130
使用TCD.System.TouchInjection.dll using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using Sy ...
我们用unity项目生成xcode工程后,我们自己可以做一些xcode的配置工作,比如资源拷贝、引用系统库、修改bulid setting信息等。 然后需要注意的是这个C#文件需要放到Editor目录下面,不然那会报错 using System.Collections; using System.C ...
分类:
移动开发 时间:
2020-04-17 15:20:53
阅读次数:
134
首先我们使用最简单的模板案例,里面有一个Counter计数器,你可以在创建模板中找到。 首先需要设置运行调试方式为IIS Express。这意味着,MAC可能不能使用调试。 然后开启运行而不调试(Ctrl+F5) 按Shift + Alt + D,会出现一个新的页面。 如果你想用Chrome调试,复 ...
分类:
其他好文 时间:
2020-04-17 09:31:20
阅读次数:
105
限定操作符运算返回一个Boolean值,该值指示序列中是否有一些元素满足条件或者是否所有元素都满足条件 一、All操作符 All方法用来确定是否序列中的所有元素都满足条件 using System; using System.Collections.Generic; using System.Lin ...
分类:
其他好文 时间:
2020-04-17 00:45:38
阅读次数:
73
查询监控项 select * from endpoint e inner join endpoint_counter c on e.id = c.endpoint_id where c.counter = "metric_name" and endpoint = "host_name" 模拟登录获取 ...
分类:
其他好文 时间:
2020-04-16 11:43:44
阅读次数:
113
1:关联容器和顺序容器 c++中有两种类型的容器:顺序容器和关联容器,顺序容器主要有:vector、list、deque等。其中vector表示一段连续的内存地址,基于数组的实现,list表示非连续的内存,基于链表实现。deque与vector类似,但是对于首元素提供删除和插入的双向支持。关联容器主 ...
分类:
编程语言 时间:
2020-04-16 11:41:50
阅读次数:
64
ArrayList实现了System.Collections空间下的IEnumerable接口,这个接口是非泛型的。如果要使用LINQ,必须声明枚举变量的类型,依赖Cast查询运算符转换枚举类型。 using System; using System.Collections; using Syste ...
分类:
其他好文 时间:
2020-04-15 21:43:23
阅读次数:
75
1、java.util.Collection 是一个集合接口(集合的顶级接口)。它提供了对集合对象进行基本操作的通用接口方法,其直接继承接口有List与Set。 Collection ├——List │ ├——LinkedList │ ├——ArrayList │ └——Vector │ └——St ...
分类:
其他好文 时间:
2020-04-15 18:23:46
阅读次数:
60
环境vs2010 应用=》管理NuGet程序包,安装MVC 4 新建项目 ValuesController.cs using System;using System.Collections.Generic;using System.Linq;using System.Net;using System ...