03 2019 档案

摘要:``` include using namespace std; class Box { public: double length; // 长度 double breadth; // 宽度 double height; // 高度 }; int main( ) { Box Box1; // 声明 阅读全文
posted @ 2019-03-13 19:18 luoganttcc 阅读(98) 评论(0) 推荐(0) 编辑
摘要:``` include include using namespace std; // 声明一个结构体类型 Books struct Books { char title[50]; char author[50]; char subject[100]; int book_id; }; int mai 阅读全文
posted @ 2019-03-13 19:08 luoganttcc 阅读(124) 评论(0) 推荐(0) 编辑
摘要:ff 阅读全文
posted @ 2019-03-13 19:04 luoganttcc 阅读(139) 评论(0) 推荐(0) 编辑
摘要:``` include using namespace std; int main() { char name[50]; cout name; cout 阅读全文
posted @ 2019-03-13 18:56 luoganttcc 阅读(107) 评论(0) 推荐(0) 编辑
摘要:``` include using namespace std; int main () { int var; int ptr; int pptr; var = 3000; // 获取 var 的地址 ptr = &var; // 使用运算符 & 获取 ptr 的地址 pptr = &ptr; // 阅读全文
posted @ 2019-03-13 13:59 luoganttcc 阅读(325) 评论(0) 推荐(0) 编辑
摘要:``` include using namespace std; const int MAX = 3; int main () { int var[MAX] = {10, 100, 200}; int ptr; // 指针中的数组地址 // 数组名是数组的首地址 ptr = var; for (in 阅读全文
posted @ 2019-03-13 13:57 luoganttcc 阅读(433) 评论(0) 推荐(0) 编辑
摘要:``` include using namespace std; int main () { int var = 20; // 实际变量的声明 int ip; // 指针变量的声明 ip = &var; // 在指针变量中存储 var 的地址 cout 阅读全文
posted @ 2019-03-13 13:53 luoganttcc 阅读(111) 评论(0) 推荐(0) 编辑
摘要:``` include using namespace std; int main () { int var1; char var2[10]; cout 阅读全文
posted @ 2019-03-13 13:50 luoganttcc 阅读(74) 评论(0) 推荐(0) 编辑
摘要:``` include include using namespace std; int main () { string str1 = "Hello"; string str2 = "World"; string str3; int len ; // 复制 str1 到 str3 str3 = s 阅读全文
posted @ 2019-03-13 13:42 luoganttcc 阅读(105) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std; int main (){ char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'}; cout #include using namespa... 阅读全文
posted @ 2019-03-13 13:01 luoganttcc 阅读(71) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;#include using std:: setw;int main(){ int n[10]; //初始化数组元素 for (int i=0;i<10;i++) { n[... 阅读全文
posted @ 2019-03-13 12:28 luoganttcc 阅读(98) 评论(0) 推荐(0) 编辑
摘要:#include #include #include using namespace std;int main(){ int i,j; srand( (unsigned)time(NULL)); /*生成10个随机数*/ for (i=0;i... 阅读全文
posted @ 2019-03-13 11:57 luoganttcc 阅读(86) 评论(0) 推荐(0) 编辑
摘要:#include #include using namespace std; int main (){ // 数字定义 short s = 10; int i = -1000; long l = 100000; float ... 阅读全文
posted @ 2019-03-13 11:37 luoganttcc 阅读(141) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;int main (){ // 数字定义 short s; int i; long l; float f; double d; // 数字赋值 s = 1... 阅读全文
posted @ 2019-03-13 11:34 luoganttcc 阅读(87) 评论(0) 推荐(0) 编辑
摘要:static 存储类static 存储类指示编译器在程序的生命周期内保持局部变量的存在,而不需要在每次它进入和离开作用域时进行创建和销毁。因此,使用 static 修饰局部变量可以在函数调用之间保持局部变量的值。static 修饰符也可以应用于全局变量。当 ... 阅读全文
posted @ 2019-03-13 11:24 luoganttcc 阅读(210) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;/* * 这个程序演示了有符号整数和无符号整数之间的差别*/int main(){ short int i; // 有符号短整数 short unsigned int j... 阅读全文
posted @ 2019-03-13 11:21 luoganttcc 阅读(258) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;#define LENGTH 10 #define WIDTH 5#define NEWLINE '\n'int main(){ int area; area = LENGTH * WI... 阅读全文
posted @ 2019-03-13 11:18 luoganttcc 阅读(84) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;// 全局变量声明int g = 20;int main (){ // 局部变量声明 // cout << g ; int g = 10; cout << g; return 0;} ... 阅读全文
posted @ 2019-03-13 10:59 luoganttcc 阅读(68) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;//变量声明extern int a,b;extern int c;extern float f;int main(){ //变量定义 int a,b; int c ; float f; a... 阅读全文
posted @ 2019-03-13 10:52 luoganttcc 阅读(109) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;int main(){ cout ::max)(); cout ::min)() ::max)(); cout ::min)() ::max)(); cout ::min)()... 阅读全文
posted @ 2019-03-12 23:22 luoganttcc 阅读(82) 评论(0) 推荐(0) 编辑
摘要:#include using namespace std;int main(){ cout << "Hello,World!\n"; return 0;} 阅读全文
posted @ 2019-03-12 23:14 luoganttcc 阅读(157) 评论(0) 推荐(0) 编辑
摘要:from pyspark.ml.linalg import Vectorsfrom pyspark.ml.classification import LogisticRegressionfrom pyspark.sql import SparkSession... 阅读全文
posted @ 2019-03-12 12:51 luoganttcc 阅读(145) 评论(0) 推荐(0) 编辑
摘要:spark 中文文档 阅读全文
posted @ 2019-03-11 21:43 luoganttcc 阅读(74) 评论(0) 推荐(0) 编辑
摘要:from sklearn import metricsimport tushare as tsfrom sklearn.cluster import KMeansimport numpyimport collectionsimport pandasfrom ... 阅读全文
posted @ 2019-03-11 12:30 luoganttcc 阅读(195) 评论(0) 推荐(0) 编辑
摘要:链接 阅读全文
posted @ 2019-03-11 09:46 luoganttcc 阅读(565) 评论(0) 推荐(0) 编辑
摘要:添加链接描述这篇最好添加链接描述 阅读全文
posted @ 2019-03-10 22:59 luoganttcc 阅读(165) 评论(0) 推荐(0) 编辑
摘要:#coding:utf-8from py2neo import Graph,Node,Relationship ##连接neo4j数据库,输入地址、用户名、密码graph = Graph('http://localhost:7474',username='n... 阅读全文
posted @ 2019-03-10 17:02 luoganttcc 阅读(812) 评论(0) 推荐(0) 编辑
摘要:pip install py2neo==3.1.2 用py2neo 就用这个版本,否则新版会让你崩溃 阅读全文
posted @ 2019-03-10 15:34 luoganttcc 阅读(1049) 评论(0) 推荐(0) 编辑
摘要:MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r 阅读全文
posted @ 2019-03-10 13:11 luoganttcc 阅读(927) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Mar 8 19:10:57 2019@author: lg"""from pyspark.sql import SparkSes... 阅读全文
posted @ 2019-03-08 19:24 luoganttcc 阅读(224) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Mar 8 18:51:51 2019@author: lg"""from pyspark import SparkContext... 阅读全文
posted @ 2019-03-08 18:59 luoganttcc 阅读(3021) 评论(0) 推荐(0) 编辑
摘要:原文链接#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Mar 8 17:09:44 2019@author: lg"""from pyspark import SparkCon... 阅读全文
posted @ 2019-03-08 18:34 luoganttcc 阅读(795) 评论(0) 推荐(0) 编辑
摘要:from pyspark import SparkContext ,SparkConfconf=SparkConf().setAppName("miniProject").setMaster("local[4]")#conf=SparkConf().setA... 阅读全文
posted @ 2019-03-07 22:28 luoganttcc 阅读(758) 评论(0) 推荐(0) 编辑
摘要:from pyspark import SparkContext ,SparkConfconf=SparkConf().setAppName("miniProject").setMaster("local[4]")#conf=SparkConf().setA... 阅读全文
posted @ 2019-03-07 22:14 luoganttcc 阅读(2406) 评论(0) 推荐(0) 编辑
摘要:1:载mysql-connector 放入 jars下2:在spark-env.sh中 配置EXTRA_SPARK_CLASSPATH环境变量3:export SPARK_CLASSPATH=/opt/spark/spark-2.4.0-bin-hadoop... 阅读全文
posted @ 2019-03-07 09:44 luoganttcc 阅读(551) 评论(0) 推荐(0) 编辑
摘要:import happybase#连接connection = happybase.Connection('localhost')connection.open()创建一个tableconnection.create_table( 'my_table'... 阅读全文
posted @ 2019-03-06 16:45 luoganttcc 阅读(173) 评论(0) 推荐(0) 编辑
摘要:文档链接#切换到spark安装目录,执行下面一条命令,192.168.0.10是master的ip,examples/src/main/python/pi.py 是python 文件的路径./bin/spark-submit --master spark:... 阅读全文
posted @ 2019-03-06 09:31 luoganttcc 阅读(418) 评论(0) 推荐(0) 编辑
摘要:conda upgrade --all添加链接描述 阅读全文
posted @ 2019-03-05 17:51 luoganttcc 阅读(670) 评论(0) 推荐(0) 编辑
摘要:添加链接描述 阅读全文
posted @ 2019-03-05 16:07 luoganttcc 阅读(1518) 评论(0) 推荐(0) 编辑
摘要:[root@localhost root]# echo > /var/log/wtmp //此文件默认打开时乱码,可查到ip等信息[root@localhost root]# last //此时即查不到用户登录信息清除登陆系统失败的记录[root@local... 阅读全文
posted @ 2019-03-04 15:53 luoganttcc 阅读(315) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示