import json >>> print(json.dumps({'4': 5, '6': 7}, sort_keys=True, ... 在Python 3.7之前, dict 不能保證是有序的,因此除非特別要求 collections.
確定! 回上一頁