1 config = $config; 26 $this -> token = $token; 27 } 28 29 /** 30 * 上传视频(封装ContentService中上传视频和获取efs配置接口) 31 * 32 * @param $file_path 视频文件本地地址 33 * @p... ...
分类:
其他好文 时间:
2018-07-31 11:01:37
阅读次数:
168
gunicorn_config.py 文件的使用案例 # coding=utf-8 import sys import os import multiprocessing path_of_current_file = os.path.abspath(__file__) path_of_current ...
分类:
其他好文 时间:
2018-07-23 19:54:02
阅读次数:
294
#!/bin/python3 import matplotlib.pyplot as plt import imageio,os TIME_GAP=0.075 #两帧之间的时间间隔,秒为单位 FILE_PATH="./testwalk/" BEGIN_INDEX=1 END_INDEX=7 FORM... ...
分类:
编程语言 时间:
2018-07-21 16:59:40
阅读次数:
2013
String path="D:\\新建文件夹\\2.png"; File file=new File(path); System.out.println(file.exists()); String path1="D:/新建文件夹/2.png"; File file1=new File(path); ...
分类:
编程语言 时间:
2018-07-19 13:55:26
阅读次数:
168
在config下新建文件admin.php,定义上传文件的路径 在config/filesystems.php下定义 ...
分类:
Web程序 时间:
2018-07-17 16:30:16
阅读次数:
2031
参考: http://www.layui.com/doc/modules/upload.html 出现的问题:1. 上传后,出现文件下载框(一般为ie下),那么你需要在服务端对response的header设置 Content-Type: text/html response.addHeader(" ...
分类:
Web程序 时间:
2018-07-15 15:01:01
阅读次数:
1872
选择工具 编译系统 新建编译系统 然后在出现的新文件中输入一下内容: cpp { "path": "D:/Program Files (x86)/CodeBlocks/MinGW/bin", "shell_cmd": "g++ \"${file}\" o \"${file_path}/${file_ ...
分类:
编程语言 时间:
2018-07-13 13:29:51
阅读次数:
154
2018-07-12 暑假要求专业实习,要有周记和工作总结。之前老早就有过写博客的想法,因为可以让自己的学习生涯有迹可循。不过租的服务器即将到期,就不自己建站了。希望通过博客园这个平台记录下自己的成长吧。希望自己能坚持下去,也希望能留下一些对别人有用的东西。 第一篇内容是关于使用OpenSSL库对字 ...
分类:
编程语言 时间:
2018-07-12 12:47:51
阅读次数:
395
python处理下数据小脚本#-*-coding:UTF-8-*-importosdefwenjchuli(file_path):withopen(file_path)asf,open(file_path+".bak",‘w‘)asf2:forlineinf:if("Location"inline):new_line=line.replace(line,"")elif("QualifiedName
分类:
编程语言 时间:
2018-07-11 10:37:45
阅读次数:
111
#1、pymysql、nnlog、redis、xlwt、xlrd、xlutils 把这些模块装好 2、写一个程序,创建一些数据。 2、写一个程序,创建一些数据。 1、创建10个文件夹,文件夹名字自定义 1、创建10个文件夹,文件夹名字自定义 2、每个文件下面有10个 日志文件, 2、每个文件下面有1 ...
分类:
其他好文 时间:
2018-07-08 14:39:21
阅读次数:
168