文件上传 1.前端加入表单 <form method="POST" , action = "/Upload", enctype="multipart/form-data"> <input type="file", name = "file"/><br> <input type="submit", v ...
分类:
Web程序 时间:
2021-05-24 05:55:31
阅读次数:
0
问题:控制台输出了乱码 解决: 1、找到settings 2、点击appearance 3、找到file encoding 4、找到idea 的 bin 文件夹下的如下两个文件 5、在两个文件的底部分别加上 -Dfile.encoding=UTF-8 6、重启后 ...
分类:
其他好文 时间:
2021-05-24 05:54:51
阅读次数:
0
安装 ./configure --enable-threads=no && make sudo make install ...
分类:
其他好文 时间:
2021-05-24 05:41:55
阅读次数:
0
MISC: 签到 1、附件下下来是一个名为EBCDIC的文件,打开后看不懂 上网查到,EBCDIC为一种较为古老的编码方式,最初是对着百科的EBCDIC表一个个写下来的,写完提交还是会有错。 后发现010支持直接解码。 WEB: find_it 题目可以扫描,找到robots.txt 随后提示你需要 ...
分类:
其他好文 时间:
2021-05-24 05:30:27
阅读次数:
0
问题原因: WPF 打开本地图片,同时另一个进程去访问这个图片; BitmapImage bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = new Uri(filePath); bitmap.EndInit(); I ...
plot 绘图 import pandas as pd excel_name = '5.1-5.9数据.xlsx' df = pd.read_excel(excel_name, index_col=2, parse_dates=True) # 以第二行为索引 ax = df.plot() fig = ...
分类:
其他好文 时间:
2021-05-24 05:19:05
阅读次数:
0
一段有问题的代码,大概20%的概率,bStartSend的值的改变没有被检查到 //线程一直循环,等待消息 while (true) { if (bStartSend) { LogInfo("bStartSend=true"); StartMotor(ref ErrMsg, ref recvMsg, ...
分类:
编程语言 时间:
2021-05-24 04:57:32
阅读次数:
0
1. # -*- encoding=utf8 -*- __author__ = "1003441" from airtest.core.api import * auto_setup(__file__) # 日志模块 from airtest.report.report import simple_ ...
分类:
其他好文 时间:
2021-05-24 04:56:48
阅读次数:
0
修改了本地的代码,然后使用: git add file git commit -m '修改原因' 执行commit后,还没执行push时,想要撤销这次的commit,该怎么办? 解决方案: 使用命令: git reset --soft HEAD^ 这样就成功撤销了commit,如果想要连着add也撤 ...
分类:
其他好文 时间:
2021-05-24 04:41:38
阅读次数:
0
在项目中遇到读取以json格式存储的配置文件,为了方便操作,将文件内容读取出来并转换为json对象,本文使用的是fastjson import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import org. ...
分类:
编程语言 时间:
2021-05-24 04:37:23
阅读次数:
0