📜  dict 到字符串数组 python 代码示例

📅  最后修改于: 2022-03-11 14:46:56.608000             🧑  作者: Mango

代码示例1
my_tuple = {"a": 1, "b": 3}
print("Tuple to array: ")

out_put = [f'{key}: {value}' for key, value in my_tuple.items()]

print(out_put)