摘要: 本本经常时间错乱,偶闲暇之作,专为同步本本时间。以前有朋友提到日期时间设置里面的有些时间服务器。限于不同的网络,有时候这些时间服务器不一定能用。因此这次选择的是www.baidu.com这个大家都能用吧。接下来上python代码 :} 1 import http.client 2 import time 3 import os 4 def get_webservertime(host): 5 conn=http.client.HTTPConnection(host) 6 conn.request("GET", "/") 7 r=conn.getrespo 阅读全文
posted @ 2012-02-03 14:55 奔跑的兔子 阅读(11162) 评论(0) 推荐(0) 编辑