import re class Retest: def __init__(self,string,path): self.string = string self.path = path def retest(self): res = re.search(self.string,self.path,flags=0).group() # res.group() print res return if __name__ == '__main__': a = 'helloworld' b = 'he(
Json格式(Json字符串) : var json='{"name": "lily","age":"15"}' Map格式: var map={name: "lily", age:"15"} Map取值: var name=map["name"]; 或 var name=map.name; 两者互转(字符串与对象的互转): var json2map=JSON.par