摘要: import time import logging from logging.handlers import TimedRotatingFileHandler def log_file_namer(log_file_name): log_file_name_split = log_file_nam 阅读全文
posted @ 2024-07-04 22:36 shulongshuyue 阅读(7) 评论(0) 推荐(0) 编辑
摘要: # python3.6.8x, y = (1, 2)print(x, y) # 1 2x, y = (1, 2, 3)print(x, y) # ValueError: too many values to unpack (expected 2)x, *y = (1, 2, 3)print(x, y 阅读全文
posted @ 2021-03-31 09:58 shulongshuyue 阅读(97) 评论(0) 推荐(0) 编辑
摘要: l = [1, 2, 3, 4, 5, 6, 7, 8, 9] l[1:4] = '' print(l) >>>[1, 5, 6, 7, 8, 9] 阅读全文
posted @ 2019-07-03 21:40 shulongshuyue 阅读(148) 评论(0) 推荐(0) 编辑