试图从一个没有任何内容的文件中追加一个整数会引发错误with open('leaguestatlogcs.txt') as f: for line in f: cs.append(int(line)) 但是,如果文本文件中没有 ...2024-05-15 已阅读: n次