摘要: def logging1(): """ logging 1 test :return: """ logging.info('this is logging 1') def logging2(): """ logging 1 test :return: """ logging.info('this i 阅读全文
posted @ 2023-05-09 13:02 xiaoxuxli 阅读(25) 评论(0) 推荐(0) 编辑
摘要: os.mkdir() <-> Path.mkdir() os.makedirs() <-> Path.mkdir() os.path.exists() <-> Path.exists() os.listdir() <-> Path.iterdir() os.path.isdir() <-> Path 阅读全文
posted @ 2023-05-09 11:11 xiaoxuxli 阅读(68) 评论(0) 推荐(0) 编辑
摘要: Do a str.replace('; ', ', ') and then a str.split(', ') or import re re.split('; |, ', string_to_split) >>> a='Beautiful, is; better*than\nugly' >>> i 阅读全文
posted @ 2023-05-09 11:11 xiaoxuxli 阅读(10) 评论(0) 推荐(0) 编辑
摘要: The primary difference between the two is that list.sort() will sort the list in-place, mutating its indexes and returning None, whereas sorted() will 阅读全文
posted @ 2023-05-09 11:11 xiaoxuxli 阅读(13) 评论(0) 推荐(0) 编辑