标签: python-2.7
loe = ["a", "b"] one = "c" print "List of elements: ", loe print "List of elements and one: ", loe.append(one) ------------ Output: List of elements: ['a', 'b'] List of elements and one: None
答案 0 :(得分:1)
list.append()没有返回值。所以你有无