我有一个来自 dweepy 的输出:
[{'content': {'mouse_x': 271,
'mouse_y': 285,
'tilt_x': 0,
'tilt_y': 0,
'tilt_z': 82},
'created': '2018-02-10T06:03:02.680Z',
'thing': 'my_thing_name'}]
我的输入是:
dweepy.get_latest_dweet_for('my_thing_name')
问题 :
如何mouse_x
从上面的 dweet 输出中单独打印值的值?
我尝试的是:
dweepy.dweet_for('my_thing_name', {'': 'mouse_x'})
这给了我输出:
{'content': {'': 'mouse_x'},
'created': '2018-02-10T06:23:20.320Z',
'thing': 'my_thing_name',
'transaction': '6f295639-a667-48ff-bbbf-6dda111333d1'}
我如何打印值 271 mouse_x
?