for x in ['spam','eggs','ham']:
print(x,end=' ')
#result:spam eggs ham
python----把列表中的值输出为一行
猜你喜欢
转载自blog.csdn.net/qq_40801709/article/details/105801042
今日推荐
周排行