问:用户给了一串带有逗号的数字,要求用逗号分隔数字列表,并生成列表和元组。
例:23,34,43,44,5,5==》['23','34','43','44','5','5'] ('23','34','43','44','5','5')
def Ayue(): x = input("请输入你所要转换的一串数字:") a = x.split(",") print(a) b = tuple(a) print(b) print(Ayue())
标签:23,python,44,练习,43,34,Ayue,print From: https://www.cnblogs.com/ayue6/p/17770306.html