Please help for Python programming

yy0127 at gmail.com yy0127 at gmail.com
Wed Mar 23 03:42:05 EST 2005


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)
while 1:
        users = {}
        byteDict = {}

        byteDict = users[value]

        users[value] = byteDict
        print users

I think the above code cannot run properly. Any ppl knows why the value
omited when it was duplicated.

Many of thanks for all!!!




More information about the Python-list mailing list