Commit fdd995ee authored by lixiaofang's avatar lixiaofang

a

parent 4875bc0d
...@@ -43,9 +43,6 @@ def get_data(numtime, numtime2): ...@@ -43,9 +43,6 @@ def get_data(numtime, numtime2):
def write_id_file(id): def write_id_file(id):
try: try:
data = open("save_topic_comment_id.txt", "w")
data.truncate()
data = open("save_topic_comment_id.txt", "a") data = open("save_topic_comment_id.txt", "a")
data.write(str(id)) data.write(str(id))
data.write("\n") data.write("\n")
...@@ -57,7 +54,7 @@ def write_id_file(id): ...@@ -57,7 +54,7 @@ def write_id_file(id):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
data1 = open("save_topic_id.txt", "w") data1 = open("save_topic_comment_id.txt", "w")
data1.truncate() data1.truncate()
numtime1, numtime2 = time_conv(20, 10) numtime1, numtime2 = time_conv(20, 10)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment