簡體   English   中英

urlopen windows ftp錯誤

[英]urlopen windows ftp error

這段代碼在linux上運行得很好,但是那里的窗口有錯誤。 怎么了?

import urllib, urllib2

a = 'ftp://ftp.arin.net/pub/stats/arin/delegated-arin-latest'

urllib.urlopen(a)
IOError: [Errno ftp error] proxy support for ftp protocol currently not implemented

urllib2.urlopen(a)
URLError: <urlopen error ftp error: >

檢查Internet Explorer中是否有某些代理設置:菜單附加功能 - > Internet選項,連接 - >“LAN設置”(或類似內容)。 如果您有代理服務器設置,urllib將無法正常工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM