質問編集履歴

1

間違いを修正

2017/02/26 09:08

投稿

horik
horik

スコア44

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  r = requests.get('http://www.jaf.or.jp/jaf_plus_tokyo_201702/')
18
18
 
19
- r.encoding('utf-8')
19
+ r.encoding = 'utf-8'
20
20
 
21
21
  print(r.text)
22
22
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  r = requests.get('http://www.jaf.or.jp/jaf_plus_tokyo_201702/')
32
32
 
33
- r.encoding('shift_jis')
33
+ r.encoding = 'shift_jis'
34
34
 
35
35
  print(r.text)
36
36