Closed wanghaisheng closed 1 year ago
json
serializes Python dictionaries to JSON. data
takes arbitrary bytes.
https://docs.python-requests.org/en/latest/api/#requests.request
@nateprewitt can you help me about
{'text': '我们自豪地向您介绍火山写作:一款中英双语的AI写作助手。您可以使用它来撰写和润色您的论文、博客、电子邮件等!在写作英文时,火山写作会实时扫描您的文章供修改和增强建议,使您的英文表达更流畅、准确、恰当。如下所示:', 'speaker': 'BV406_streaming', 'language': 'zh'}
why after I set the param , print the json data , double quotation mark become single quotation marks
@wanghaisheng You're printing a Python dictionary, not the raw JSON string.
Please direct any other requests for assistance to the python-requests tag on https://stackoverflow.com. We won't be able to assist on this issue tracker. Thanks!
Expected Result
am i wrong about using this
Actual Result
Reproduction Steps
System Information