python 判断是否为timestamp

if re.match('\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}', str(lba[1])):
               print(1)

 

posted @ 2023-03-25 08:32  myrj  阅读(262)  评论(0编辑  收藏  举报