You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
745 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# -*- encoding: utf-8 -*-
'''
@File : fkpc.py
@License : (C)Copyright 2018-2022
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2022/12/30 15:34 zart20 1.0 None
'''
old = [' 1、实训总结:(请描述遇到的问题,解决思路,以及问题是否解决)▁▁▁\n', ' 答:\n', '\n', '\n', '\n', ' 2、反馈建议▁▁▁\n', ' 答:']
count = 0
with open("example.txt", "r", encoding="utf8") as f:
text = f.readlines()
ol = ''.join(old)
ne = ''.join(text)
if ol != ne:
print("反馈添加成功。")
print("感谢反馈!")
print("恭喜通关!")
else:
print("请填写反馈!")