pat = '(?<=股價區間爲)(.*?)(?=元)'#最短匹配 targetPrice = re.search(pat, reportSum)
pat = '(?<=目標價)(.+)(?=元)' #默認最長匹配 targetPrice = re.search(pat, reportSum)
pat = '(?<=股價區間爲)(.*?)(?=元)'#最短匹配 targetPrice = re.search(pat, reportSum)
pat = '(?<=目標價)(.+)(?=元)' #默認最長匹配 targetPrice = re.search(pat, reportSum)
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta