Python 3.5.1 urllib has no attribute request

后端 未结 6 1478
礼貌的吻别
礼貌的吻别 2020-12-17 08:19

I have tried

import urllib.request

or

import urllib

The path for my urllib is /Library/Framework

6条回答
  •  甜味超标
    2020-12-17 08:47

    import urllib.request as urllib
    

    then in the code call urlopen function

    example:

    test = urllib.urlopen("----")
    

提交回复
热议问题