Python 练习实例332025-07-14 17:20•Python2.x•阅读 Python 100例题目:按逗号分隔列表。程序分析:无。实例(Python 2.0+)#!/usr/bin/python# -*- coding: UTF-8 -*-L = [1,2,3,4,5]s1 = ','.join(str(n)forninL)print(s1)以上实例输出结果为: 1,2,3,4,5 Python 100例