我正在广泛寻找有一个用于 elasticsearch 的 IDE。但我找不到一个。我知道 Restclient 会这样做很简单,但是在大多数其余客户端中,正文编辑器没有自动缩进等等。我在想如果没有IDE,我可以制作一个,这样其他人也可以从中受益。为此,我需要如何创建编辑器?任何工具都可以在打字时进行正确的 json 格式设置。如果在那里,我可以开始一个 github 项目并开始制作一个 IDE。我还可以添加弹性搜索的关键字,这对开发人员来说很容易。
如果那种东西已经存在,请指点我。我无法找到一个。
我编写了以下代码来测试constexpr析因与正常方式评估所用的时间
#include<iostream>
#include<chrono>
constexpr long int factorialC(long int x){ return x*(x <2?1 : factorialC(x-1));}
using ns = std::chrono::nanoseconds;
using get_time = std::chrono::steady_clock;
void factorial(long int x){
long int suma=1;
for(long int i=1; i<=x;i++)
{
suma=suma*i;
}
std::cout<<suma<<std::endl;
}
int main(){
long int x = 13;
std::cout<<"Now calling the constexpr"<<std::endl;
auto start1 = get_time::now();
std::cout<<factorialC(x)<<std::endl;
auto end1 = get_time::now();
std::cout<<"Now calling the normal"<<std::endl;
auto start2 = get_time::now();
factorial(x);
auto end2 = get_time::now();
std::cout<<"Elapsed time for constexpr is "<<std::chrono::duration_cast<ns>(end1-start1).count()
<<" Elapsed time …Run Code Online (Sandbox Code Playgroud) 我刚刚更新了我的anaconda包
conda update --prefix /home/srinath/anaconda3 anaconda
Run Code Online (Sandbox Code Playgroud)
它将我的包更新到最新的anaconda 2.4
当我在我的终端输入此内容时
python --version
Run Code Online (Sandbox Code Playgroud)
我得到了结果
Python 3.4.3 :: Anaconda 2.4.0 (64-bit)
Run Code Online (Sandbox Code Playgroud)
为什么我没有3.5?Anaconda 2.4包含3.5,这就是我在博客中读到的内容 请帮助我,我想尝试3.5的新功能并将其用于主流开发
我正在使用centos 7.我的操作系统出现此问题吗?
anaconda ×1
c++ ×1
c++11 ×1
centos7 ×1
constexpr ×1
ide ×1
performance ×1
python ×1
python-3.x ×1