如何分开输出键值对,用format,比如只要输出键
dict_test = {"key1":"value1","key2":"value2"} keys = list(dict_test.keys()) print("键是:{}".format(keys))
如有帮助,还望采纳~