08 2018 档案
摘要:nohup python work.py >my.log &
阅读全文
摘要:pip install --user tensorlayer
阅读全文
摘要:财富是底层人民的追求经济社会中的每个人都在竭力的将自己的东西卖出去;当你想买很多东西时,要抑制住购买的欲望,因为有很多东西是不必要的当别人竭力想你推荐某种东西时,你要小心了,好东西都是留明天卖的;如果有选择的话,不要和长江以北的人做生意; ...
阅读全文
摘要:sudo add-apt-repository ppa:apandada1/brightness-controllersudo apt-get updatesudo apt-get install brightness-controller-simplebr...
阅读全文
摘要:马尔科夫转换矩阵Out[72]: Sunny Cloudy RainySunny 0.50 0.375 0.125Cloudy 0.25 0.125 0.625Rainy 0.25 0.375 0.375...
阅读全文
摘要:厦门楼市崩盘了 在这里,我不想预测或推断未来,我只陈述关于房地产这个行业当前数据的事实,并且我几乎可以断定,这些事实是你们在其他信息渠道上得不到的 我曾经在一家房产数据公司负责算法 你在新闻联播上看到的信息是,一线的城市的房价下跌0.6%,...
阅读全文
摘要:from datetime import datetimefrom elasticsearch import Elasticsearches = Elasticsearch()doc = { 'author': 'kimchy', 'text':...
阅读全文
摘要:from datetime import datetimefrom elasticsearch import Elasticsearches = Elasticsearch()doc = { 'author': 'kimchy', 'text':...
阅读全文
摘要:from elasticsearch import Elasticsearches = Elasticsearch()phrase={ "query" : { "match_phrase" : { "about" :...
阅读全文
摘要:from elasticsearch import Elasticsearches = Elasticsearch()phrase={ "query" : { "match_phrase" : { "about" :...
阅读全文
摘要:截止目前的搜索相对都很简单:单个姓名,通过年龄过滤。现在尝试下稍微高级点儿的全文搜索——一项 传统数据库确实很难搞定的任务。 搜索下所有喜欢攀岩(rock climbing)的雇员:from elasticsearch import Elasticsearc...
阅读全文
摘要:截止目前的搜索相对都很简单:单个姓名,通过年龄过滤。现在尝试下稍微高级点儿的全文搜索——一项 传统数据库确实很难搞定的任务。 搜索下所有喜欢攀岩(rock climbing)的雇员:from elasticsearch import Elasticsearc...
阅读全文
摘要:写入数据from elasticsearch import Elasticsearches = Elasticsearch()body1={ "first_name" : "John", "last_name" : "Smith", "a...
阅读全文
摘要:yuanwen Elasticsearch启动# 进入到elasticsearch的bin目录cd /.../.../elasticsearch-x.x.x/bin# 启动elasticsearch./elasticsearch可以再开启另外一个终端,输入一...
阅读全文
摘要:from elasticsearch import Elasticsearches = Elasticsearchres1 = es.search(index="2018-07-31", body={"query": {"match_all": {}}})p...
阅读全文
摘要:原文链接文档:http://elasticsearch-py.readthedocs.io/en/master/ Elasticsearch官方API文档: https://www.elastic.co/guide/en/elasticsearch/refe...
阅读全文
摘要:#导入相关数据import tushare as tsimport pandas as pd#import elasticsearch as esfrom datetime import datetimefrom elasticsearch import ...
阅读全文
摘要:#导入相关数据import tushare as tsimport pandas as pd#import elasticsearch as esfrom datetime import datetimefrom elasticsearch import ...
阅读全文
摘要://做人做事我笃信阳明心学的知行合一//编程之道完美诠释知行合一//对某一个问题哪怕有一点点的不清楚,那就是完全不清楚//对一个问题,只有知与未知两个状态,没有中间状态//下面的代码应该能够加深对C语言指针的理解#includemain() { int...
阅读全文
摘要:#include#include#define N 10typedef struct list { int data; struct list *next; }SLIST;main() { SLIST *head ,*p...
阅读全文
摘要://L3_1.c#include#include//定义链表节点类型,这是C语言中非常经典的结构体//但是这中定义有一点点难以理解struct node *next//这应该是一种递归定义吧 ,定义一个结构体指针nextstruct node ...
阅读全文
摘要://本书代码来思想自于创客诚品的>//但我对原书代码做了较大的改动;// 个人认为算法与数据结构是一个程序员的内功,欲成为第一流的高手必须苦练内功// 欲研究数据结构,必须写C#include#include#define N 10//定义一个结构体,这里有...
阅读全文
摘要:三体下载将下载的文件重命名为santi.txt,放在文件的目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 18:31:11 2018@author: luoga...
阅读全文
摘要:三体链接下载三体文件,将其从命名为santi.txt 将其放在程序的统一目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 10:13:28 2018@author...
阅读全文
摘要:f=open("foo.txt")for line in f: print (line)f = open("data.txt","r") #设置文件对象st= f.read() #将txt文件的所有内容读入到字符串str中f.close()...
阅读全文