![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
photon_wa
这个作者很懒,什么都没留下…
展开
-
Python统计FTP所有目录下文件大小
Python列出FTP当前目录中的所有文件和子目录,并统计大小。原创 2024-02-21 10:59:01 · 421 阅读 · 0 评论 -
一个简单量化策略回测
实现一个简单的指数定投策略,写一个回测脚本验证一下。策略定投创业板指数(场内ETF,或场外指数基金)一般的定投每期固定金额,而这里采取更激进的方法,每期定投金额随指数降低而增加,即越跌越投(策略详见脚本)获取指数历史行情如何获取历史行情数据? 由于我们是按月定投,只需要获取按月K线图即可。有付费软件和网站当然可以获取历史行情数据,但作为一个打游戏从来不充钱的人,本着能不花钱就不花钱的原则,在网上努力找到了免费的资源。在浏览器输入https://q.stock.sohu.com/hisHq?c原创 2021-08-30 13:06:23 · 9063 阅读 · 0 评论 -
zlib压缩的Python,C++简单用法
hex9=bytes.fromhex(‘789c6d’)c9=zlib.decompress(hex9)hh = zlib.compress(b)https://stackoverflow.com/questions/63005126/how-to-deal-with-array-allocating-in-decompressionhttps://github.com/ebiggers/libdeflate/blob/master/lib/zlib_compress.c原创 2020-11-24 19:55:05 · 1216 阅读 · 1 评论 -
python多线程多进程并发编程
python多线程,多进程原创 2020-11-04 21:16:10 · 165 阅读 · 0 评论 -
Python cryptography库及RSA非对称加密
https://blog.csdn.net/wjiabin/article/details/85228078https://nitratine.net/blog/post/asymmetric-encryption-and-decryption-in-python/#encrypting原创 2020-11-04 20:48:33 · 3808 阅读 · 1 评论 -
python更新列表元素
https://www.cnblogs.com/mlgjb/p/10948721.htmlhttps://stackoverflow.com/questions/3459098/create-list-of-single-item-repeated-n-times原创 2020-10-21 19:58:37 · 1789 阅读 · 0 评论 -
Python argparse的使用
Python中参数解析使用argparse直接上代码#!/usr/bin/pythonimport argparseimport sysimport osimport timedef main(): parser = argparse.ArgumentParser( description = "A test argparse", epilog = "[ex...原创 2019-07-11 19:31:15 · 117 阅读 · 0 评论