为什么bs4导入了却不能使用啊,在别的目录又可以使用了,有没有办法解决,感谢各位
这样就可以了,望采纳!
from bs4 import BeautifulSoup soup = BeautifulSoup("<html>A Html Text</html>", "html.parser")
# 从bs4模块倒入BeautifulSoup from bs4 import BeautifulSoup