Refresh a local web page using Python

后端 未结 5 1342
自闭症患者
自闭症患者 2021-01-04 12:24

I\'m using Python to gather some information, construct a very simple html page, save it locally and display the page in my browser using webbrowser.open(\'file:///c:/testfi

5条回答
  •  花落未央
    2021-01-04 12:54

    It looks like several people have asked this in the past but here is a link that sums it up.

    Python refresh HTML document

    But webbrowser.open( url, new=0 ) should open the page in the current window and not initialize a new one.

提交回复
热议问题