python 列表的内容赋值
l1 = '20180201 b4b8e187-d59d-33fb-addc-ef189aca3712 com.ss.android.article.news' l2 = re.split('[ ]+',l1) birthday,real_device_id,packname = l2 In [31]: birthday Out[31]: '20180201' In [32]: real_device_id Out[32]: 'b4b8e187-d59d-33fb-addc-ef189aca3712' In [33]: packname Out[33]: 'com.ss.android.article.news'