可以使用 dicts() 方法

In [2]: TinyUrl.select().dicts()
Out[2]: <peewee.ModelSelect at 0x7fe0a7650940>

In [4]: list(TinyUrl.select().dicts())
Out[4]: 
[{'id': 1,
  'user_id': 110,
  'short_uuid': 'RBnZYJ',
  'video_id': 12345,
  'created_at': datetime.datetime(2022, 3, 20, 11, 44, 29),
  'updated_at': datetime.datetime(2022, 3, 20, 11, 44, 29)},
 {'id': 2,
  'user_id': 11,
  'short_uuid': 'ggyD6t',
  'video_id': 12345678,
  'created_at': datetime.datetime(2022, 3, 21, 2, 13, 30),
  'updated_at': datetime.datetime(2022, 3, 21, 2, 13, 30)}]

````

universe_king
3.4k 声望678 粉丝