![](https://img-blog.csdnimg.cn/20190918140158853.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
杂谈
文章平均质量分 55
各种踩坑记录
xwmisc
这个作者很懒,什么都没留下…
展开
-
python只用时间戳获得多天某时段的数据
当日0时至今所经过的秒数 = (时间戳-时区偏移) % (24*60*60)# 时间戳数据 [(时间戳1,数据项...),(时间戳2,数据项...),...,(时间戳n,数据项...)]data = [(1608591827 + i * 60 * 20) for i in range(100)] # 这里换成你的数据# 时区偏移bias = int(time.mktime(time.strptime('1970/1/2 00:00:00', '%Y/%m/%d %H:%M:%S'))).原创 2021-03-28 10:03:12 · 229 阅读 · 0 评论 -
c#调用c++编写的dll踩坑笔记
创建DLL创建VS的c++空项目,项目叫mydll创建cpp加入以下代码#define DECL_DLLEXPORT __declspec(dllexport)extern "C" DECL_DLLEXPORT float add(float a, float b);float add(float a, float b) { return a + b;}打开项目属性,平台...原创 2020-04-27 04:02:02 · 1610 阅读 · 0 评论 -
cxfreeze打包python项目踩坑笔记
cxfreeze打包python项目踩坑笔记先安装 pip install cx-freezecmd运行 cxfreeze --init-script=D:\py\test.py test.exe> cxfreeze --init-script=D:\py\test.py test.exeTraceback (most recent call last): File "d:\...原创 2020-04-23 09:39:27 · 5365 阅读 · 0 评论