convert dictionary to string python的相關文章
convert dictionary to string python的相關商品

Python convert string to tuple/list | Sany's Linux and Open Source Blog
瀏覽:549
日期:2025-06-25
I have long string with (delimiter) comma separated and want to covert it to tuple or list. Following is my string: s = 'a,b,c,d,e,f,g,h,i,j,k' Use following command to convert string to tuple: tuple = tuple(item for item in s.split(',') if item.strip()) ...看更多