python----把列表中的值输出为一行

for x in ['spam','eggs','ham']: print(x,end=' ') 结果:spam eggs hamspa
相关文章
相关标签/搜索