Jan-22-2019, 09:43 AM
my python profram is as follows:
class logent(object): def __init__(self, s): self.line=s self.info=s.split('',5) def printline(self): print(self.line) for entry in self.info: print(entry) print() s1 = 'Mar 26 15:17:01 Steven CRON[13135]' lo=logent(s1) lo.printline()but there is no output and no warning message, what's the wrong with this program