Created
September 5, 2023 14:38
-
-
Save todashuta/6450478c2fc87a859de14bdc5b1196bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telnetlib import Telnet | |
with Telnet('koukoku.shadan.open.ad.jp', 23) as tn: | |
while (b := tn.read_some()) != b'': | |
print(b.decode('sjis'), end='') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment