如果改成这样会报错:Traceback (most recent call last):
File "/Users/huxuefeng/Desktop/Pytool/use_xPath_demo.py", line 41, in <module>
parse()
File "/Users/huxuefeng/Desktop/Pytool/use_xPath_demo.py", line 8, in parse
f = open('./static/index.html', 'r', encoding='utf-8')
TypeError: 'encoding' is an invalid keyword argument for this function