还是有问题啊Traceback (most recent call last):
File "copy.py", line 1, in <module>
import requests
File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\__init__.py", line 120, in <module>
from . import utils
File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\utils.py", line 27, in <module>
from ._internal_utils import to_native_string
File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\_internal_utils.py", line 11, in <module>
from .compat import is_py2, builtin_str, str
File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\compat.py", line 60, in <module>
from http import cookiejar as cookielib
File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\http\cookiejar.py", line 32, in <module>
import copy
File "C:\Users\asus\Desktop\python_work\copy.py", line 9, in <module>
r = requests.get(url, headers=headers)
AttributeError: partially initialized module 'requests' has no attribute 'get' (most likely due to a circular import)
我看得有点懵,第一句也报错了,这不是标准库吗;还有get函数,应该没问题才对啊 |