python list to newline separated value

后端 未结 5 2087
孤独总比滥情好
孤独总比滥情好 2020-12-11 11:54


Im trying to get data in pylon to use in jquery autocomplete, the librarary i\'m using for autocomplete it requires this format

abc
pqr
xyz
         


        
5条回答
  •  囚心锁ツ
    2020-12-11 12:21

    "\n".join(item[0] for item in my_list)
    

    However, what's this got to do with JSON...?

提交回复
热议问题