print("响应JSON内容:") print(response.json()) except requests.exceptions.RequestException as e: print(f"请求失败: {e}") if hasattr(e, 'response') and e.response is not None: print(f"错误状态码: {e.response.status_code}") print(f"错误响应内容: {e.response.text}") Image文本生图