Python
七分辣度
@
展开
-
Python垃圾回收机制
基于C语言源码底层,让你真正了解垃圾回收机制的实现。转载 2023-02-16 11:14:30 · 279 阅读 · 0 评论 -
Python获取n天/周/月/年前、后的时间
datetime和time模块常用方法原创 2022-11-30 12:07:46 · 1626 阅读 · 0 评论 -
python datetime 获取n年后的今天
获取明年的今天 获取明年的当天 获取n年后的当天原创 2022-06-29 17:39:11 · 1475 阅读 · 0 评论 -
Sanic服务启动失败
Sanic服务启动失败原创 2022-06-21 15:14:49 · 815 阅读 · 0 评论 -
python 去除字符串中非字母和数字的元素
一行代码去除字符串中非字母和数字的元素from loguru import loggers = 'fdsa49376!@&#h3!@#'res = ''.join(filter(lambda c: c.isalpha() or c.isdigit(), s))logger.info(res) # fdsa49376h3原创 2022-05-20 10:32:35 · 1030 阅读 · 0 评论