file = open('text3.txt', 'r', encoding='utf-8') # 生成没有空行的文件
file2 = open('sidh.txt', 'r', encoding='utf-8')
line = file.readlines()
line2 = file2.readlines()
def check(string, sub_str):
# if (string.find(sub_str) == -1):
if (string.find(sub_str)):
print("不存在!")
else:
print("存在!")
for p in line:
p = p.replace('[', '\[').replace(']', '\]').replace('
', '|')
print(p,end='')