会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
luoganttcc
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
336
337
338
339
340
341
342
343
344
345
下一页
2018年8月3日
链表c的经典实现(一)
摘要: //本书代码来思想自于创客诚品的>//但我对原书代码做了较大的改动;// 个人认为算法与数据结构是一个程序员的内功,欲成为第一流的高手必须苦练内功// 欲研究数据结构,必须写C#include#include#define N 10//定义一个结构体,这里有...
阅读全文
posted @ 2018-08-03 17:56 luoganttcc
阅读(341)
评论(0)
推荐(0)
2018年8月1日
python 文本聚类算法
摘要: 三体下载将下载的文件重命名为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
阅读(2117)
评论(0)
推荐(0)
python word2vector (三)
摘要: 三体链接下载三体文件,将其从命名为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
阅读(221)
评论(0)
推荐(0)
python 读取txt
摘要: 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
阅读(129)
评论(0)
推荐(0)
2018年7月31日
Python Wordvector (二)
摘要: 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
阅读(162)
评论(0)
推荐(0)
python word2vector (一)
摘要: 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
阅读(153)
评论(0)
推荐(0)
2018年7月29日
C 语言 链表的创建与打印
摘要: /* 包含的头文件 */ #include #include /* 定义一个表示链表的结构体指针 */ struct list { int id; /* 标识这个元素方便查找 */ ...
阅读全文
posted @ 2018-07-29 20:59 luoganttcc
阅读(282)
评论(0)
推荐(0)
链表学习(一)静态链表的构造
摘要: #includetypedef struct Student //声明结构体类型 struct Student { int num; float score; struct St...
阅读全文
posted @ 2018-07-29 15:06 luoganttcc
阅读(125)
评论(0)
推荐(0)
2018年7月28日
C 语言指针理解
摘要: #includeint main() { int *p1,*p2,*p,a,b; printf("please enter two integer numbers"); scanf("%d,%d",&a,&b); p1=&a; ...
阅读全文
posted @ 2018-07-28 22:35 luoganttcc
阅读(71)
评论(0)
推荐(0)
python redis 消息队列
摘要: redis 安装完成后,以下代码可以直接运行#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Wed Sep 5 16:08:51 2018@author: luogan"""impor...
阅读全文
posted @ 2018-07-28 13:06 luoganttcc
阅读(362)
评论(0)
推荐(0)
上一页
1
···
336
337
338
339
340
341
342
343
344
345
下一页
公告