mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
15 lines
323 B
Python
15 lines
323 B
Python
from contextlib import redirect_stdout
|
|
import io
|
|
import string
|
|
|
|
|
|
while True:
|
|
with redirect_stdout(io.StringIO()) as f:
|
|
a = input()
|
|
print(a)
|
|
res = f.getvalue()
|
|
res = ''.join([x for x in res if x in string.printable])
|
|
print('-'*len(res))
|
|
print(res.strip('\n'))
|
|
print('-'*len(res))
|