摘要: import numpy as np matrixA = [] for i in open("D:\\matrixA.txt"): row = [int(x) for x in i.split(",")] matrixA.append(row) matrixB = [] for j in open("D:\\matrixB.txt"): row = [int(x) f... 阅读全文
posted @ 2019-07-20 21:33 越界 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 用到的组件是:NPOI 1.main中的方法 string filePathAndName = "D:\\" + Guid.NewGuid().ToString() + ".xls"; using (FileStream fs = new FileStream(filePathAndName, Fi 阅读全文
posted @ 2019-02-21 17:18 越界 阅读(342) 评论(0) 推荐(0) 编辑
摘要: public static int[] cal_next(string str, int[] next, int len) { int i, j; next[0] = -1; for (i = 1; i < len; i++) { j = next[i - 1]; while (str[j + 1] 阅读全文
posted @ 2019-02-13 09:26 越界 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-12 18:50 越界 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.latoooo.com/xia_zhe_teng/368.htm 我的系统版本是 Centos 7 64位。为了方便,先安装常用的开发环境。 1.下载 OpenSSL: 2.解压 OpenSSL: 3.进入 OpenSSL目录: 4.配置并编译 OpenSSL: 5.下 阅读全文
posted @ 2018-01-29 13:33 越界 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 系统环境:centos7 1.安装Docker 2.在window发布好core站点,上传到centos ,例如 /root/core 3.编写Dockerfile文件,放在/root/core内 内容: # 进入docker中的/usr/local/src目录RUN cd /usr/local/s 阅读全文
posted @ 2017-07-10 17:40 越界 阅读(278) 评论(0) 推荐(0) 编辑
摘要: public class FileController : Controller { /// /// 跟asp.net webform和asp.net mvc不一样,通过注入的方式,获取项目所在路径 /// private IHostingEnvironment _hostEnv; public FileController(IHostingEnvironment env) { _hostE... 阅读全文
posted @ 2017-07-05 20:11 越界 阅读(2207) 评论(0) 推荐(0) 编辑
摘要: 1、传统方式 第一种:@Html.ActionLink("Register", "Register", "Account") 第二种:<a href="@Url.Action("Register", "Account")">Register</a> 生成的Html代码 第一种:<a href="/A 阅读全文
posted @ 2017-07-04 15:01 越界 阅读(771) 评论(0) 推荐(0) 编辑
摘要: # yum install mysql mariadb数据库的相关命令是: systemctl start mariadb #启动MariaDB systemctl stop mariadb #停止MariaDB systemctl restart mariadb #重启MariaDB system 阅读全文
posted @ 2017-06-13 13:48 越界 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 下载对应当前系统版本的nginx包(package)# wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm建立nginx的yum仓库# rpm -ivh ngi 阅读全文
posted @ 2017-06-01 14:33 越界 阅读(8672) 评论(0) 推荐(0) 编辑