class ZHONGZHI:
def caozuo(self,s):
fp = open('C:/Users/老头/Desktop/test5.txt', 'w', encoding="utf8")
fp.write(s)
fp.close()
fp = open('C:/Users/老头/Desktop/test5.txt', 'r')
return fp.read()
if __name__=='__main__':
flag =True
S = ZHONGZHI()
jieguo=''
while(flag):
s=input("shuru:")
jieguo+=s
print(S.caozuo(jieguo))
if s=="#":
flag== False
break