回答編集履歴

1

Update

2021/12/07 02:32

投稿

melian
melian

スコア20655

test CHANGED
@@ -34,6 +34,12 @@
34
34
 
35
35
  sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
36
36
 
37
+ # print(type(sys.stdout)) # => <class '_io.TextIOWrapper'>
38
+
39
+ # print(sys.stdout.encoding) # => utf-8
40
+
41
+ # sys.stdout.encoding = 'utf-8' # => AttributeError: readonly attribute
42
+
37
43
 
38
44
 
39
45
  today_date = datetime.datetime.today()