google-services.json
我已经尝试了很多东西让代码在这么多秒后再次运行但是我尝试的一切都给了我错误(windows用户)
import urllib2
page = urllib2.urlopen('http://127.0.0.1:5000/')
page_content = page.read()
with open('index.html', 'w') as fid:
fid.write(page_content)
答案 0 :(得分:1)
使用time.sleep
:
import urllib2
import time
while True:
page = urllib2.urlopen('http://127.0.0.1:5000/')
page_content = page.read()
with open('index.html', 'w') as fid:
fid.write(page_content)
time.sleep(10)