# 2.正则 # 方法:findall | match | split | sub# a = 10# print(a.__hash__())# def fn():# pass# print(fn.__name__)# import json# print(json.dumps([1,2,3]))import re # 全文匹配,返回值是列表res = re.findall('\d*?', 'd1') # ['', '', ''] | ['', '', '1', '']print(res) # 非…