2021
05-20
05-20
python获取淘宝服务器时间的代码示例
然但是,这个只能获取到秒,没法到毫秒。我暂时不知道该咋解决代码importrequestsimporttimewhileTrue:classtimeTaobao(object):r1=requests.get(url='http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp',headers={'User-Agent':'Mozilla/5.0(WindowsNT10.0;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/55.0.2883.87UBrowser/6.2.4098.3Safari/5...
继续阅读 >