发布网友 发布时间:2024-04-29 21:40
共1个回答
热心网友 时间:2024-04-30 00:55
class LogClient(object): def __init__(self, kafkaHost, kafkaPort): self.kafkaHost = kafkaHost self.kafkaPort = kafkaPort def fixLen(self, s, l): s = s[0:8]+worknode+s[8:] fixed = s+" "*(l-len(s)) return fixed def sendLog(self, 。