python打印dict
时间: 2023-07-05 21:36:57 浏览: 72
python中dict()的高级用法实现
可以使用print函数来打印dict,例如:
```python
my_dict = {"name": "Alice", "age": 25, "location": "New York"}
print(my_dict)
```
输出结果为:
```
{"name": "Alice", "age": 25, "location": "New York"}
```
阅读全文