django 数组

 person_list = []
    my_list = []
    c=[]
    for i in Me.objects.filter(changdi=1):
        person_list.append([i.time])
    for arry in person_list:
        my_list.extend(arry)
    values = ",".join(map(str, my_list))
    my =list(values)
    for a in  my:
         c.extend(a)
    b = [round(float(x[0])) for x in c]


    # a = [[1L], [2L]]

posted @ 2015-10-21 10:56  gopher-lin  阅读(792)  评论(0)    收藏  举报