摘要:
1、内置函数 常用的内置函数: #sum min max round zip divmod locals sorted filter map sum() 求和 min() 最小值 max() 最大值 avg = sum(l) / len(l) #计算平均值 round() 保留几位小数 zip() 阅读全文
posted @ 2021-05-16 16:34
黑。白。
阅读(137)
评论(0)
推荐(0)
摘要:
def str_to_timestamp(s=None,format="%Y-%m-%d %H:%M:%S"): ''' :param s: 格式化好的时间,比如2021-5-16 17:06:32 :param format: 时间格式 %Y-%m-%d %H:%M:%S :return: 返回的 阅读全文
posted @ 2021-05-16 16:32
黑。白。
阅读(137)
评论(0)
推荐(0)
浙公网安备 33010602011771号