pycharm遇到的小问题
1.
Pycharm编写的代码出现满屏的波浪线,如何去除》》》点击右下角的小人图标将箭头移到中间syntax处即可。
2.
运行时报错:
UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
The code that caused this warning is on line 5 of the file D:/PycharmProjects/test1/test.py. To get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "html.parser")
markup_type=markup_type))
在BeautifulSoup里添加“html.parser”即可。