第13835题 单选题
下列Python代码的正确输出结果是?
import json
data = {
"name": "Alice",
"age": 25,
"city": "New York"
}
text = json.dumps(data)
print(text)
A

["name": "Alice", "age": 25, "city": "New York"]

B

{'name': "Alice", 'age': 25, 'city': "New York"}

C

{"name": "Alice", "age": 25, "city": "New York"}

D

{'name': 'Alice', 'age': 25, 'city': 'New York'}

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析