python2.7 print values in list
Question: I have a question to print values in list.

    
    
    import time
    strings = time.strftime("%Y,%m,%d")
    t = strings.split(',')
    date = [int(x) for x in t]
    print date
    

then result is

    
    
    [2016,5,15]
    

But I want to print values in date like this

    
    
    20160515
    

How can I fix it?


Answer: What's wrong with doing it like this:

    
    
    >>> strings = time.strftime("%Y%m%d")
    >>> strings
    '20160515'
    

