我试着调用了我的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