Python序列元素

'''
功能:序列
作者:cxf
日期:2021年11月18日
'''
word = 'internationalization'
for i in range(len(word)):
    print(word[i], end=' ')
print()
for i in range(-1, -(len(word) + 1), - 1):
    print(word[i], end=' ')

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_62590351/article/details/121408328
今日推荐