12 2021 档案

摘要:文档连接 依赖包 pip install django-redis pip install drf-extensions 配置 CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis 阅读全文
posted @ 2021-12-31 19:06 Luciferl 阅读(64) 评论(0) 推荐(0)
摘要:#简介 line_profiler 逐行分析代码消耗时间 memory_profiler 逐行分析代码消耗内存 #安装 pip install line_profiler memory_profiler 由于pip安装出现编码错误,故使用源码包安装 <https://files.pythonhost 阅读全文
posted @ 2021-12-17 11:29 Luciferl 阅读(93) 评论(0) 推荐(0)
摘要:题目链接 :https://leetcode-cn.com/problems/super-pow/ a^b %c == a^(b%phi(c)) % c 本题求解需要用到欧拉定理 https://baike.baidu.com/item/%E6%AC%A7%E6%8B%89%E5%AE%9A%E7% 阅读全文
posted @ 2021-12-05 23:28 Luciferl 阅读(47) 评论(0) 推荐(0)
摘要:import datetime from dateutil.relativedelta import relativedelta print(datetime.datetime.now()+relativedelta(months=1)) 阅读全文
posted @ 2021-12-01 11:30 Luciferl 阅读(125) 评论(0) 推荐(0)