都失败了
cn.ntp.org.cn
>>> import ntplib
>>> nc = ntplib.NTPClient()
>>> nc.request('cn.ntp.org.cn').tx_time
1678937893.7497382
本文参与了SegmentFault 思否面试闯关挑战赛,欢迎正在阅读的你也加入。
可以使用
ntp1.aliyun.com,
ntp2.aliyun.com,
ntp3.aliyun.com,
ntp4.aliyun.com,
ntp5.aliyun.com。
这些都是阿里云提供的NTP服务器,可以在国内使用。如果需要更多的服务器,可以在网上搜索一下,有很多其他的选择。
1 回答683 阅读✓ 已解决
1 回答534 阅读✓ 已解决
1 回答802 阅读✓ 已解决
1 回答552 阅读
1 回答638 阅读
725 阅读
669 阅读
中国 cn.ntp.org.cn
中国教育网 edu.ntp.org.cn
中国香港 hk.ntp.org.cn
中国台湾 tw.ntp.org.cn
s1a.time.edu.cn 北京邮电大学
s1b.time.edu.cn 清华大学
s1c.time.edu.cn 北京大学
s1d.time.edu.cn 东南大学
s1e.time.edu.cn 清华大学
s2a.time.edu.cn 清华大学
s2b.time.edu.cn 清华大学
s2c.time.edu.cn 北京邮电大学
s2d.time.edu.cn 西南地区网络中心
s2e.time.edu.cn 西北地区网络中心
s2f.time.edu.cn 东北地区网络中心
s2g.time.edu.cn 华东南地区网络中心
s2h.time.edu.cn 四川大学网络管理中心
s2j.time.edu.cn 大连理工大学网络中心
s2k.time.edu.cn CERNET桂林主节点
s2m.time.edu.cn 北京大学