能一路清纯到底 发表于 2020-3-21 09:12:46

亲,能解释一下ctype == 3 和 value,o是什么意思吗?

      if table.cell(rown, 6).ctype == 3:
            # 提取日期时间中的日期
            #date_new = datetime.datetime.strptime(second, '%Y-%m-%d %H:%M:%S').date()
            # 转换为字符串,去除日期时间中的日期
            #time_new = str(second).replace(str(date_new), ' ').strip()
            date = xldate_as_tuple(table.cell(rown, 6).value, 0)
            array['postime'] = datetime.datetime.strptime(date, '%Y-%m-%d %H:%M:%S').date()
            date = str(date).replace(str(array['postime']), ' ').strip()

LYF511 发表于 2020-3-21 09:27:32

哪节课?

能一路清纯到底 发表于 2020-3-21 09:28:11

LYF511 发表于 2020-3-21 09:27
哪节课?

网上的啊!

LYF511 发表于 2020-3-21 09:30:04

用到了什么模块?
页: [1]
查看完整版本: 亲,能解释一下ctype == 3 和 value,o是什么意思吗?