摘要: /* 包含的头文件 */ #include #include /* 定义一个表示链表的结构体指针 */ struct list { int id; /* 标识这个元素方便查找 */ ... 阅读全文
posted @ 2018-07-29 20:59 luoganttcc 阅读(296) 评论(0) 推荐(0)
摘要: #includetypedef struct Student //声明结构体类型 struct Student { int num; float score; struct St... 阅读全文
posted @ 2018-07-29 15:06 luoganttcc 阅读(132) 评论(0) 推荐(0)
摘要: #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 阅读(86) 评论(0) 推荐(0)
摘要: 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 阅读(373) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Jul 27 18:08:26 2018@author: luogan"""# 树节点类构建class TreeNode(objec... 阅读全文
posted @ 2018-07-27 18:14 luoganttcc 阅读(179) 评论(0) 推荐(0)
摘要: index 这是很简单的一个插入数据的方法,每条数据调用一个index方法,代码如下from datetime import datetimefrom elasticsearch import Elasticsearches = Elasticsearch... 阅读全文
posted @ 2018-07-26 15:58 luoganttcc 阅读(690) 评论(0) 推荐(0)
摘要: localhost:5601 阅读全文
posted @ 2018-07-26 15:26 luoganttcc 阅读(149) 评论(0) 推荐(0)
摘要: haskelllet fibonacci n = if n fibonacci 206765pythondef factorial(n): if n==1 or n==2: return 1 else: return... 阅读全文
posted @ 2018-07-25 22:16 luoganttcc 阅读(168) 评论(0) 推荐(0)
摘要: public class Employee{ String name; int age; String designation; double salary; // Employee 类的构造器 public Employee(Str... 阅读全文
posted @ 2018-07-24 14:01 luoganttcc 阅读(102) 评论(0) 推荐(0)
摘要: 链接 阅读全文
posted @ 2018-07-24 13:17 luoganttcc 阅读(129) 评论(0) 推荐(0)