output konsol ekspor python ke file
sys.stdout = open("test.txt", "w")
print("Hello World")
sys.stdout.close()
# TEST.TXT:
# Hello World
The Biton
sys.stdout = open("test.txt", "w")
print("Hello World")
sys.stdout.close()
# TEST.TXT:
# Hello World