摘要: 例如生成07:45-08:30范围的时间 import datetime, random date1 = datetime.datetime(2022, 1, 1, 7, 45, 0) date2 = datetime.datetime(2022, 1, 1, 8, 30, 0) timestamp 阅读全文
posted @ 2024-11-13 20:40 wstong 阅读(3) 评论(0) 推荐(0) 编辑
摘要: def convert_to_number(letter, columnA=0): ab = '_ABCDEFGHIJKLMNOPQRSTUVWXYZ' letter0 = letter.upper() w = 0 for _ in letter0: w *= 26 w += ab.find(_) 阅读全文
posted @ 2024-11-13 20:07 wstong 阅读(9) 评论(0) 推荐(0) 编辑