# _*_ coding:utf-8 _*_

from os.path import exists

if exists("tempfile.txt"):
	print '''
记事本现在的内容是：
-------------------------------------------'''
	txt = open("tempfile.txt")
	notelist = txt.readlines()
	txt.close()
	for i in notelist:
		print(i)
	print "-------------------------------------------"

txt = open("tempfile.txt", 'a')
newline = raw_input("请给记事本输入新内容： ")
txt.write(newline)
txt.write("\n")
txt.close()

@@ -49,16 +49,29 @@
 ists%0D%0A%0D%0A
+# %E6%89%93%E5%8D%B0%E4%B9%8B%E5%89%8D%E6%89%80%E6%9C%89%E7%9A%84%E5%86%85%E5%AE%B9%0D%0A
 if exist
@@ -323,16 +323,26 @@
 ---%22%0D%0A%0D%0A
+# %E8%BE%93%E5%85%A5%E6%96%B0%E7%9A%84%E5%86%85%E5%AE%B9%0D%0A
 txt = op
@@ -436,24 +436,24 @@
 rite(%22%5Cn%22)%0D%0A
-
 txt.close()%0D
@@ -441,20 +441,179 @@
 %22%5Cn%22)%0D%0Atxt.close()%0D%0A
+%0D%0A# %E6%96%B0%E5%86%85%E5%AE%B9%E5%8F%A6%E5%AD%98%E4%B8%BA%E6%96%87%E4%BB%B6%0D%0Afilename = raw_input(%22%E6%96%B0%E5%86%85%E5%AE%B9%E7%9A%84%E6%96%87%E4%BB%B6%E5%90%8D%E6%98%AF%EF%BC%9A%22)%0D%0Aoutput = open(filename + %22.txt%22, 'w')%0D%0Aoutput.write(newline)%0D%0Aoutput = open(filename + %22.txt%22)%0D%0Aoutput.close%0D%0A

Update main.py