python----把列表中的值輸出爲一行

for x in ['spam','eggs','ham']: print(x,end=' ') 結果:spam eggs hamspa
相關文章
相關標籤/搜索