public static Map<String,String> loadDataFromFile() { Map<String,String> map = new ConcurrentHashMap<>(); try { File file = new File("filename.txt"); ...
分类:
其他好文 时间:
2020-05-12 11:45:24
阅读次数:
82
#!/usr/bin/env python# -*- coding:utf-8 -*-# Author: Hoganimport xlrdimport sqlite3def read_excel(fileName): # 打开文件excel workBook = xlrd.open_workbook ...
分类:
数据库 时间:
2020-05-12 11:27:14
阅读次数:
84
安装并导入模块 打开命令行窗口,输入: pip install -i https://mirrors.aliyun.com/pypi/simple/ openpyxl 导入: from openpyxl import load_workbook 打开表格有两种方式: 1、sheet = workbo ...
分类:
编程语言 时间:
2020-05-11 21:46:09
阅读次数:
197
with open(filename, 'r', encoding='utf-8') as f: 指定文件对象的上下文环境并在离开上下文环境时自动释放文件资源 模式具体含义 'r' 读取 (默认) def main(): f = open('致橡树.txt', 'r', encoding='utf- ...
分类:
编程语言 时间:
2020-05-11 13:05:18
阅读次数:
64
安装 一直默认next即可 初始全局配置 建议使用github的账号信息 创建仓库 在当前目录中 常用指令 git status: 查看当前状态 git add filename: 添加到缓存区 1. git add file1 file2 file2 2. git add . :将当前目录添加到缓 ...
分类:
其他好文 时间:
2020-05-11 01:24:06
阅读次数:
58
前戏 假设你这边已经写好了一个vue的项目,并且本地运行也是没有问题的,现在我们就可以部署到服务器上了,我们使用nginx进行部署 Nginx 是一个高性能的 Web 和反向代理服务器, 它具有有很多非常优越的特性: 作为 Web 服务器:相比 Apache,Nginx 使用更少的资源,支持更多的并 ...
分类:
系统相关 时间:
2020-05-10 23:30:56
阅读次数:
289
tar命令可以对文件进行归档。它最初是设计用来将数据存储在磁带上。 tar可以将多个文件和文件夹保存为单个文件,同时还能保留所有的文件属性,如所有者、权限等。 tar -cvf -c 代表“创建文件”( creat file),-f 代表“指定文件名”( specify filename) -v 这 ...
分类:
其他好文 时间:
2020-05-10 15:02:16
阅读次数:
52
location ~ \.php$ { root /srv/oa/xinhu/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /srv/oa/xinhu/$fastcgi_sc ...
分类:
Web程序 时间:
2020-05-10 12:33:55
阅读次数:
76
最近在做一个项目,需要在前端对图片切片并上传到七牛云 技术要点 canvas.toBlob(blob=>{}); //可将canvas保存成二进制文件 formData.append('file', blob, 'filename'); //将二进制文件添加到FormData中 ajax.send( ...
分类:
其他好文 时间:
2020-05-09 23:08:15
阅读次数:
107
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: xuexueuxe import socket import select import os,json,time,queue def get(r,cmd): filename = cmd. ...
分类:
其他好文 时间:
2020-05-09 18:38:10
阅读次数:
61