用python如何打开自己制作的html网页?

打开的时候总是会跳到百度等其他网页上,是怎么回事?要怎么改?


import webbrowser
filename = 'file:///Users/username/Desktop/AnotherWorld/' + 'helloworld.html' #这里自己改成file:/// 加上你的这个html的绝对地址
webbrowser.open_new_tab(filename)