lr 10

parent b71def7b
+: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0 2020-11-26 13:59:15.377841 : +: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0
+: (1.000001, 2.000002, 3.00005) = 6.000053 2020-11-26 13:59:15.421833 : +: (1.000001, 2.000002, 3.00005) = 6.000053
+: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0 2020-11-26 13:59:15.425833 : +: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0
-: (1, 2, 3, 4, 5, 6, 7, 8, 9) = -45.0 2020-11-26 13:59:15.429832 : -: (1, 2, 3, 4, 5, 6, 7, 8, 9) = -45.0
/: (1, 2, 3, 4) = 0.04167 2020-11-26 13:59:15.433831 : /: (1, 2, 3, 4) = 0.04167
*: (1.0001, 2.2345) = 2.23472 2020-11-26 13:59:15.433831 : *: (1.0001, 2.2345) = 2.23472
+: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0 2020-11-26 13:59:15.433831 : +: (1, 2, 3, 4, 5, 6, 7, 8, 9) = 45.0
from datetime import datetime
def print_results(*args, action=None, result=None): def print_results(*args, action=None, result=None):
""" """
Вывод в табличном виде результатов вычислений Вывод в табличном виде результатов вычислений
...@@ -33,6 +34,5 @@ def print_results(*args, action=None, result=None): ...@@ -33,6 +34,5 @@ def print_results(*args, action=None, result=None):
def write_log(*args, action=None, result=None, file='calc-history.log.txt'): def write_log(*args, action=None, result=None, file='calc-history.log.txt'):
f = open(file, mode='a', errors='ignore') f = open(file, mode='a', errors='ignore')
f.write(f"{datetime.now()}: {action}: {args} = {result} \n")
f.write(f"{action}: {args} = {result} \n")
f.close() f.close()
\ No newline at end of file
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