摘要:
hashable An object is hashable if it has a hash value which never changes during its lifetime (it needs a __hash__() method), and can be compared to o 阅读全文
摘要:
"""check whether some letters lies in one word""" word = "paramount" letters = 'para' if letters in word.lower(): print("True") print(letters) print(" 阅读全文
摘要:
from openpyxl import Workbook from openpyxl.reader.excel import load_workbook import os import time import random """ openpyxl(可读写excel表)专门处理Excel2007 阅读全文
摘要:
import re s = "1102231990xxxxxxxx" data = re.search('(?P<province>\d{3})(?P<city>\d{3})(?P<born_year>\d{4})', s) dataDict = data.groupdict() print(dat 阅读全文