豆瓣测试.py 454 B

12345678910111213141516
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # File : 豆瓣测试.py
  4. # Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
  5. # Date : 2022/9/16
  6. import json
  7. selected_categories = {
  8. "类型": "",
  9. "形式": "",
  10. "地区": ""
  11. }
  12. print(selected_categories)
  13. b = json.dumps(selected_categories, separators=(',', ':'), ensure_ascii=False)
  14. print(b)