首页 > 编程知识 正文

python api,python requests

时间:2023-05-06 02:16:58 阅读:50393 作者:3267

我试着调用了我的azuremlapi,但是urllib有问题。 因为我使用的是python3,所以应该使用urllib而不是urllib2,但是我很困惑urllib会发生什么以及为什么会显示错误消息。 在 完整脚本: import urllib2 # If you are using Python 3,import urllib instead of urllib2 导入JSON data={ ' Inputs': { ' input1': { ' ColumnNames': ['x '、' x '、' x'], ' Values': [ ['x ',' x ',' x'] (、)、 '全球参数' : { } } body=str.encode(JSON.dumps ) data ) ) URL=' https://ussouthcentral.services.azure ml.net/work spaces /xxxxx

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。