摘要:
def logging1(): """ logging 1 test :return: """ logging.info('this is logging 1') def logging2(): """ logging 1 test :return: """ logging.info('this i 阅读全文
摘要:
os.mkdir() <-> Path.mkdir() os.makedirs() <-> Path.mkdir() os.path.exists() <-> Path.exists() os.listdir() <-> Path.iterdir() os.path.isdir() <-> Path 阅读全文
摘要:
Do a str.replace('; ', ', ') and then a str.split(', ') or import re re.split('; |, ', string_to_split) >>> a='Beautiful, is; better*than\nugly' >>> i 阅读全文
摘要:
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 阅读全文