参考:https://www.bilibili.com/video/BV1at411T75o/?spm_id_from=333.337.search-card.all.click&vd_source=e0d139ef9278fd07bd20752f3c433bb0pivot可以随机选择,比如可以选择第一个数字,设定两个下标。 import sys c = 0 data = [] for line in sys.stdin: if c == 0: c = 1 continue a = int(line[:-1]) # 过滤重复值 i...