コード例 #1
0
 def operation_sequence(history_file):
     history1 = LimitedFileHistory()
     history2 = LimitedFileHistory()
     history1.append('line4')
     history2.append('line5')
     history1.save_history_to_file(history_file)
     history2.save_history_to_file(history_file)
コード例 #2
0
 def operation_sequence(history_file):
     history_obj = LimitedFileHistory()
     history_obj.read_history_file(history_file)
     history_obj.append('line0')
     history_obj.append('line1')
     history_obj.append('line2')
     history_obj.append('line3')
     history_obj.save_history_to_file(history_file)