摘要: 无论什么语言,字符串处理是最基本的功能,Python的字符串处理功能尤其灵活。 L= [1,2,3,4,5] s='-'.join(str(n) for n in L) #1-2-3-4-5 阅读全文
posted @ 2019-07-16 21:27 notis 阅读(295) 评论(1) 推荐(1)
摘要: 无论什么语言,字符串处理是最基本的功能,Python的字符串处理功能尤其灵活。 阅读全文
posted @ 2019-07-16 21:27 notis 阅读(484) 评论(0) 推荐(0)