📌  相关文章
📜  如何在python代码示例中输入逗号分隔的int值

📅  最后修改于: 2022-03-11 14:45:18.468000             🧑  作者: Mango

代码示例4
# input comma separated elements as string 
str = str (raw_input ("Enter comma separated integers: "))
print "Input string: ", str

# conver to the list
list = str.split (",")
print "list: ", list