for p in verify_code.split("|"): # 179,277|109,161 先循环,再切割 x = int(p.split(",")[0]) # 字符串转整数型 y = int(p.split(",")[1])