import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
print(text)
python text.py > text.txt
Go to list of users who liked
More than 3 years have passed since last update.
import io, sys
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
print(text)
python text.py > text.txt
Register as a new user and use Qiita more conveniently
Go to list of users who liked