lambda参数:表达式; 使用,如: a = [1, 2, 3] f = lambda x : x + 1 map(f, a) ...
分类:
其他好文 时间:
2020-01-14 14:48:23
阅读次数:
67
先看一段类代码的定义: 类的头文件 #pragma once #include<iostream> using namespace std; class mycoach { public: char name[30]; int age; char expertise[60]; char foods[ ...
分类:
编程语言 时间:
2020-01-14 09:45:07
阅读次数:
144
Error: Linking... nafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in LIBCMTD.lib(n ...
分类:
其他好文 时间:
2020-01-13 23:24:14
阅读次数:
93
java框架整合错误:org.hibernate.AnnotationException: No identifier specified for entity 错误原因是因为在对VipOperatorDto进行对象关系映射的时候忘记加上主键@Id了。 这个错是hibernate的annotatio ...
分类:
编程语言 时间:
2020-01-12 15:02:24
阅读次数:
73
之前测试一直都在使用phpenv和phpstudy ,不过这两个集成环境时长容易出bug,各种问题劝退。之前Windows开始Linux的体验又不尽人意,今天介绍一个别的方法。VMware安装Linux,然后在Linux系统安装宝塔。比较宝塔用的多嘛,还是感觉很不错的, 首先,贴一下用到的工具下载链 ...
分类:
系统相关 时间:
2020-01-12 13:27:05
阅读次数:
151
1. 函数的定义 package main import ( "fmt" ) // 将计算的功能,放到一个函数中,然后在需要使用,调用即可 // 为了让其它包的文件使用Cal函数,需要将C大写类,似其它语言的public func Cal(n1 float64, n2 float64, operat ...
分类:
其他好文 时间:
2020-01-12 00:17:56
阅读次数:
136
用$.each()来遍历后台传过来的json数据。直接遍历传过来的数据时就发生 Uncaught TypeError: Cannot use 'in' operator to search for 这个error。 原因是:因为我们后台传过来的是json数据,但我们$.each()遍历的数据是要ja ...
分类:
Web程序 时间:
2020-01-11 20:40:21
阅读次数:
83
k8s yml文件中configmap挂载整个目录和挂载目录下部分指定文件
分类:
其他好文 时间:
2020-01-11 09:27:48
阅读次数:
861
// smart pointer implements #include <iostream> #include <memory> using namespace std; template<typename T> class SharePtr; template<typename T> class ...
分类:
其他好文 时间:
2020-01-10 23:50:34
阅读次数:
104