We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc2daf commit e28e176Copy full SHA for e28e176
1 file changed
Engine/Logging.py
@@ -14,10 +14,10 @@ def log(*text):
14
15
file.close()
16
17
- def print(*text):
+ def print(*text, end="\n"):
18
"""Логирование в консольnПринимает: (*strings) - строки для логгирования"""
19
date = datetime.datetime.now()
20
21
for i in text:
22
i = str(i)
23
- print(f"[{'{:2.0f}'.format(date.hour)}:{'{:2.0f}'.format(date.minute)}:{'{:2.0f}'.format(date.second)}]: {str(i)}\n")
+ print(f"[{'{:2.0f}'.format(date.hour)}:{'{:2.0f}'.format(date.minute)}:{'{:2.0f}'.format(date.second)}]: {str(i)}{end}")
0 commit comments