Python?г????Windows????????????
???????????? ???????[ 2016/5/3 11:23:26 ] ?????????????? Windows
????????????t????cmos????????????????ο??????????????·????Щ??https??????????????????
?????????????????python?????????????????????????????????????socket??????udp????????????????????ntplib??????????????ping ?????????cn.pool.ntp.org????????????????????????м??udp??????????????????udp??????????????????????????????????????????????????????????????????????·???????????????????????IP?????????????????????????????????????????????????????????????????????IP?????????
????????????????????????£?
#-*- coding:utf-8 -*-
import socket
import struct
import time
import win32api
import os
import re
def getTime(TimeServerAddresses):
TIME_1970 = 2208988800L
client = socket.socket(socket.AF_INET?? socket.SOCK_DGRAM)
client.settimeout(3)
data = 'x1b' + 47 * '