python-电脑时间校准
python-电脑时间校准源码#-*- coding = utf-8 -*-#Time : 2021/1/22 #Author : 小柠檬#File : 时间校准.pyimport ntplibimport osimport datetimeimport timedef ntpClient(): hosts = ['0.cn.pool.ntp.org', '1.cn.pool.ntp.org', '2.cn.pool.ntp.org', '3.cn.pool.ntp.org']
原创
2021-02-10 11:49:42 ·
751 阅读 ·
1 评论