Please help for Python programming
yy0127 at gmail.com
yy0127 at gmail.com
Mon Mar 21 04:02:22 EST 2005
I don't know why i entered the below code and it will miss some
records.
Anyone can help me???
users = {}
users1 = {}
while 1:
user, serviceType, msgType, inOut, date, time, numBytes =
aLog.GetNextMessage("")
fullmsg = serviceType + "|" + msgType + "|" + inOut
bytemsg = user + " " + serviceType + " " + msgType + " " + inOut + " "
+ numBytes
user1 = user
msgDict = {}
byteDict = {}
print bytemsg # 53 records in source file
msgDict = users[user] # get the cum statistics for this user
byteDict = users1[user1]
print bytemsg # 50 records in source file
More information about the Python-list
mailing list