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
import socket | |
try: | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
host = "127.0.0.1" | |
port = 55580 | |
s.connect((host, port)) |
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
import os | |
from io import StringIO | |
from io import BytesIO | |
import datetime | |
#ioオブジェクトの作成 | |
#出力内容をバッファリングする | |
i = StringIO() | |
#実行時のディレクトリを取得 |