反轉英文單詞

s = 'i like you, but just i like you'
def func(s):
ret = s.split(' ')
ss = ret[::-1]
for i in ss:
print(i,end=' ')
x = func(s)
print(x)
相關文章
相關標籤/搜索