days

docker 学习总结

我怕爱的太早我们不能终老 提交于 2019-12-02 12:19:50
Docker 是一个容器工具,提供虚拟环境。解决了软件的环境配置和依赖问题,让软件可以带环境和依赖的安装。 Docker 将应用程序与该程序的依赖,打包在一个文件里面。运行这个文件,就会生成一个虚拟容器。程序在这个虚拟容器里运行,就好像在真实的物理机上运行一样。有了 Docker,就不用担心环境问题。 1. 注册 docker 账号 想要使用docker,先注册一个docker账号, 注册docker账号 。 注册完成后,登录到 docker hub 就能看到自己的 docker 镜像了,docker hub 是 docker 官方存放 docker 镜像的仓库。如我的 hub 下列出了我push的镜像 2. docker 的安装 注册完docker账号,然后安装docker: window 10 Mac OS window 10 安装 docker 19.03.2 百度网盘地址 安装完成后可以通过命令 docker version 来查看docker的版本号 C:\Users\lixinjie>docker version Client: Docker Engine - Community Version: 19.03.2 API version: 1.40 Go version: go1.12.8 Git commit: 6a30dfc Built: Thu Aug 29 05

Jfreechart: Display weeks on x axis for value of days

独自空忆成欢 提交于 2019-12-02 10:32:05
问题 I am using JFreeChart to display a value for each day of a month. Now I want to have my x-axis display the weeks in a month instead of the days. At the moment the values for my graph are double on the y-axis and int on the x axis. Timestamp ts = a.getTimestamp(); Double val = a.getVal(); series1.add(ts.getDate(), val); I am using plot.getDomainAxis().setRange(0, 31); to set the range for the days to one month and xax.setTickUnit(new NumberTickUnit(7)); for the x-axis to display the ticks at

Jfreechart: Display weeks on x axis for value of days

血红的双手。 提交于 2019-12-02 06:41:11
I am using JFreeChart to display a value for each day of a month. Now I want to have my x-axis display the weeks in a month instead of the days. At the moment the values for my graph are double on the y-axis and int on the x axis. Timestamp ts = a.getTimestamp(); Double val = a.getVal(); series1.add(ts.getDate(), val); I am using plot.getDomainAxis().setRange(0, 31); to set the range for the days to one month and xax.setTickUnit(new NumberTickUnit(7)); for the x-axis to display the ticks at the right position. Instead of displaying the days (0, 7, 14, 21, 28) i want them to be weeks (0, 1, 2,

【手把手机器学习入门到放弃】从线性回归开始

倖福魔咒の 提交于 2019-12-02 05:53:18
终于开新坑了~ 线性回归是指将数据拟合成 y = a 1 x 1 + a 2 x 2 + a 3 x 3 . . . + a n x n + b + ϵ y=a_1x_1+a_2x_2+a_3x_3...+a_nx_n+b +\epsilon y = a 1 ​ x 1 ​ + a 2 ​ x 2 ​ + a 3 ​ x 3 ​ . . . + a n ​ x n ​ + b + ϵ 的形式 通过训练模型获得参数 a 1 , a 2 , . . . , a n , b a_1, a_2, ..., a_n, b a 1 ​ , a 2 ​ , . . . , a n ​ , b 从而对新的x值,可以预测y 下面正式开始~本期分析的是墨尔本的房价 import pandas as pd import seaborn as sns import numpy as np import matplotlib . pyplot as plt # 线性回归 from sklearn . linear_model import LinearRegression # 数据分割 from sklearn . model_selection import train_test_split from datetime import date 1. 数据集描述 Melbourne Housing

ex2

别说谁变了你拦得住时间么 提交于 2019-12-02 03:46:18
#include <stdio.h> int main() { int days; printf("输入一个整数: \n"); scanf("%d",&days); // 补足×××处的表达式,使得满足程序功能描述 if(days<=5) // days在1到5之间 printf("workdays, fighting\n"); else if(days=6&7) // days是6或7 printf("weekend, relax~\n"); else printf("Ooops, not in 1~7\n"); return 0; } 来源: https://www.cnblogs.com/yyt20011109/p/11729728.html

判断今天是一周的第几天

拈花ヽ惹草 提交于 2019-12-02 03:24:05
1 #include<stdio.h> 2 void judge(int days); 3 int main() 4 { 5 int days; 6 printf("请输入今天是一周的第几天:\n"); 7 scanf("%d",&days); 8 judge(days); 9 getchar(); 10 getchar(); 11 return 0; 12 } 13 void judge(int days) 14 { 15 switch(days) 16 { 17 case 1:printf("周一");break; 18 case 2:printf("周二");break; 19 case 3:printf("周三");break; 20 case 4:printf("周四");break; 21 case 5:printf("周五");break; 22 case 6:printf("周六");break; 23 case 7:printf("周日");break; 24 default:printf("输入错误,请重新输入:"); 25 scanf("%d",&days);judge(days);break; 26 } 27 28 } 来源: https://www.cnblogs.com/liugangjiayou/p/11728709.html

How to get list of dates from some date? [duplicate]

拟墨画扇 提交于 2019-12-02 03:11:45
This question already has an answer here: how to get a list of dates between two dates in java 22 answers I have two variables: startDate - for example 29/04/2018 howManyDays - for example 30 I want to get list of 30 days from date 29/04/2018. Can you tell me how can I do it? I found only days beetwen two dates. int days = Days.daysBetween(startDate, endDate).getDays(); List<LocalDate> dates = new ArrayList<LocalDate>(days); // Set initial capacity to `days`. for (int i=0; i < days; i++) { LocalDate d = startDate.withFieldAdded(DurationFieldType.days(), i); dates.add(d); } I don’t know how to

获取合约日期

白昼怎懂夜的黑 提交于 2019-12-02 02:13:51
1. 当周星期五 import time,datetime thisfriday = str(datetime.date.today() + datetime.timedelta(days= (4 - datetime.datetime.now().weekday()))).replace("-", "") print(thisfriday) 返回 20191025 2. 下周星期五 lastfriday = str(datetime.date.today() + datetime.timedelta(days= (11 - datetime.datetime.now().weekday()))).replace("-", "") print(lastfriday) 返回 20191101 来源: https://www.cnblogs.com/fangbei/p/11725515.html

mysql创建表分区

江枫思渺然 提交于 2019-12-01 22:47:39
MySQL创建表分区 create table erp_bill_index( id int primary key auto_increment, addtime datetime ); insert into erp_bill_index(addtime) values ('2018-02-01 12:00:00'), ('2018-03-01 12:00:00'), ('2018-04-01 12:00:00'), ('2018-05-01 12:00:00'), ('2018-06-01 12:00:00'), ('2018-07-01 12:00:00'), ('2018-08-01 12:00:00'), ('2018-09-01 12:00:00'), ('2018-10-01 12:00:00'), ('2018-11-01 12:00:00'), ('2018-12-01 12:00:00'), ('2019-01-01 12:00:00'), ('2019-02-01 12:00:00'), ('2019-03-01 12:00:00'), ('2019-04-01 12:00:00'), ('2019-05-01 12:00:00'), ('2019-06-01 12:00:00'), ('2019-07-01 12:00:00'), ('2019-08-01

V3 - 现在完成时(present perfect) & 一般过去时(past) 区别和差异 Teacher:Lamb

穿精又带淫゛_ 提交于 2019-12-01 21:53:50
日常交流 学雅思 语言研究 学托福 正说反意: You could have been here! 你本可以来的! (你没有来) 情态动词高级用法?! 待思考和研究方向 【关于如何精准用词: 持续性 和 瞬间 词的区分和使用】 I have borrowed your books for three days borrowed 是瞬间动词 × I have kept your books for three days kept 是持续性动词,用于这里更为恰当 √ 来源: https://www.cnblogs.com/Cong0ks/p/11717987.html