摘要: #导入相关数据import tushare as tsimport pandas as pd#import elasticsearch as esfrom datetime import datetimefrom elasticsearch import ... 阅读全文
posted @ 2018-08-05 22:08 luoganttcc 阅读(2319) 评论(0) 推荐(0)
摘要: //做人做事我笃信阳明心学的知行合一//编程之道完美诠释知行合一//对某一个问题哪怕有一点点的不清楚,那就是完全不清楚//对一个问题,只有知与未知两个状态,没有中间状态//下面的代码应该能够加深对C语言指针的理解#includemain() { int... 阅读全文
posted @ 2018-08-04 22:08 luoganttcc 阅读(107) 评论(0) 推荐(0)
摘要: #include#include#define N 10typedef struct list { int data; struct list *next; }SLIST;main() { SLIST *head ,*p... 阅读全文
posted @ 2018-08-04 21:22 luoganttcc 阅读(99) 评论(0) 推荐(0)
摘要: //L3_1.c#include#include//定义链表节点类型,这是C语言中非常经典的结构体//但是这中定义有一点点难以理解struct node *next//这应该是一种递归定义吧 ,定义一个结构体指针nextstruct node ... 阅读全文
posted @ 2018-08-03 18:00 luoganttcc 阅读(94) 评论(0) 推荐(0)
摘要: //本书代码来思想自于创客诚品的>//但我对原书代码做了较大的改动;// 个人认为算法与数据结构是一个程序员的内功,欲成为第一流的高手必须苦练内功// 欲研究数据结构,必须写C#include#include#define N 10//定义一个结构体,这里有... 阅读全文
posted @ 2018-08-03 17:56 luoganttcc 阅读(351) 评论(0) 推荐(0)
摘要: 三体下载将下载的文件重命名为santi.txt,放在文件的目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 18:31:11 2018@author: luoga... 阅读全文
posted @ 2018-08-01 18:44 luoganttcc 阅读(2126) 评论(0) 推荐(0)
摘要: 三体链接下载三体文件,将其从命名为santi.txt 将其放在程序的统一目录下#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Aug 1 10:13:28 2018@author... 阅读全文
posted @ 2018-08-01 15:34 luoganttcc 阅读(226) 评论(0) 推荐(0)
摘要: f=open("foo.txt")for line in f: print (line)f = open("data.txt","r") #设置文件对象st= f.read() #将txt文件的所有内容读入到字符串str中f.close()... 阅读全文
posted @ 2018-08-01 15:05 luoganttcc 阅读(135) 评论(0) 推荐(0)
摘要: import jiebaimport pandas as pdtxt = open("hlm.txt", "r", encoding="gb18030").read()from gensim.models.word2vec import Word2Vec s... 阅读全文
posted @ 2018-07-31 22:59 luoganttcc 阅读(171) 评论(0) 推荐(0)
摘要: from gensim.test.utils import common_texts, get_tmpfilefrom gensim.models import Word2Vecpath = get_tmpfile("word2vec.model")mode... 阅读全文
posted @ 2018-07-31 22:58 luoganttcc 阅读(164) 评论(0) 推荐(0)