回答編集履歴

1

2022/01/25 06:22

投稿

shiracamus
shiracamus

スコア5406

test CHANGED
@@ -3,11 +3,14 @@
3
3
  ```python
4
4
  import json
5
5
 
6
- data = json.loads('{"test":"aaa","id":"xxxxxx"}')
6
+ text = '{"test":"aaa","id":"xxxxxx"}'
7
+ print(type(text), repr(text))
8
+ data = json.loads(text)
7
- print(type(data), data)
9
+ print(type(data), repr(data))
8
10
  ```
9
11
 
10
12
  ```text:実行結果
13
+ <class 'str'> '{"test":"aaa","id":"xxxxxx"}'
11
14
  <class 'dict'> {'test': 'aaa', 'id': 'xxxxxx'}
12
15
  ```
13
16