0

Python のローカル NTP サーバーに関して誰か助けてくれませんか。Python コードは以下のとおりです。

import ntplib
from time import ctime
while True:
 try:
  c = ntplib.NTPClient()
  response = c.request(host='192.168...',port=2947)
  print(response)
  print(ctime(response.tx_time))
 except Exception as e:
    print(e)

このコードを実行すると、出力は 192.168 から受信した応答を返しません....

4

0 に答える 0