收起
with open('data.txt', 'r') as f: for i in f.readlines(): if i[0]!='#': print(i)
所以你遇到啥问题了?
报告相同问题?