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
Mis à jour 01/03/2026
Étoiles
304
Forks
34
quick start

Installation and usage

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

Installation
$ install --globalskills.sh
Utilisation

Après l'installation, vous pouvez utiliser ce skill en exécutant la commande suivante dans votre terminal :

skills use python