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

for x in ['spam','eggs','ham']:
    print(x,end=' ')
#result:spam eggs ham

猜你喜欢

转载自blog.csdn.net/qq_40801709/article/details/105801042