#腾讯8.17笔试第一题 def jieya(ans): left_index = 0 right_index = 0 shu_index = 0 # HG[3|B[2|CA]]F for i in range(len(ans)): if ans[i] == '[': left_index = i elif ans[i] == ']': right_index = i break elif ans[i] == '|': ...