def jiejue(str_): if str_=="": return 0 if str_=="[]": return 1 num_all = 0 while len(str_)>2: if str_[:2]=="[]" and str_[2]!= '[' and ']': num_all += int(str_[2])*jiejue(str_[:2]) str_ = str_[3:] ...