Python下操作time、datetime类型时间
转换 local_time = datetime.datetime.strptime(string, ‘%Y-%m-%d %H:%M:%S’) (string , datetime, timestamp, time tuple相互转换_GeekLee的博客-CSDN博客) 加减法 将数据转换到timestamp,进行加减法,再转换回去即可
213 2022-01-15 去围观Python修复expected an indented block
今天照抄了一段代码,是这样子的: [crayon-651054f9d28e0093900061/] 运行的时候出大问题:expected an indented block 解决方法:在If语句后面写点东西啊,你if后头啥都没有还写啥啊 就像这样,if语句后面整点东西 如果不是这个问题的话就是你tab或者是…
369 2021-01-05 去围观用阴间的办法解决pip报错
错误提示:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /Nuitka/Nuitka/archive/d…
426 2021-01-03 去围观