Thanks for your help! I am already fix it!!
Many thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I am sorry that i forgot to see the working example. Base on your
example, i can show the value without missing but got the other
problem. I would like to culmulate the value by users. I was rewrite
your example but cannot not work.
##
import sys
import pprint
try:
f = open('data.txt', 'r')
e
Thanks for your advice.^^
I find out something special (because i don't know). I would like to
retrieve data from source file into array. The data will be omited if
the value is duplicated. For example, there is 3 values - 1,2,1. It
will only display 1,2 after i ran the script.
value = (1,2,1)
wh
Actually, this script will open a text file which is seperated by tabs.
The PRINT code is for my testing. My problem is bytemsg will be omitted
some records. For example, my text file have 53 records about username.
After byteDict = users1[user1], it remains 50 records in the output
file.
I woul
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 = u