home/categories/scripting/ecnu-icalk-autoskill-skillbank-users-chinese-gpt3-5-8-glm4-7-python日期字符串标准化转换函数-skill-md
scriptingdevelopment

python

编写Python函数,将包含或不包含时间部分的日期字符串(如'2023/6/26 15:00'或'2023/6/26')统一转换为datetime.date对象。

ECNU-ICALK
maintainer
ECNU-ICALK
Atualizado 01/03/2026
Estrelas
304
Forks
34
quick start

Installation and usage

编写Python函数,将包含或不包含时间部分的日期字符串(如'2023/6/26 15:00'或'2023/6/26')统一转换为datetime.date对象。

Instalação
$ install --globalskills.sh
Uso

Depois de instalar, você pode usar esta skill executando o seguinte comando no terminal:

skills use python