我需要函数来检查name.txt
变量,如果变量将改变print1,如果变量2次又改变print1,那么可以在python中这样做吗
fr = open("plik.txt",'r')
first_length = len(str(fr.read()))
while True:
text = str(fr.read())
if(len(text)!=first_length):
fr.close()
fw = open("plik.txt","w")
fw.write(text)
fw.close()
print("done")
break;
目前没有回答
相关问题 更多 >
编程相关推荐