# list = ['abcd', 789, 2.23, 'runoob', 70.2]
# tinylist = [123, 'runoob']

# print(list)
# print(list[0])
# print(list[1:3])
# print(list[2:])
# print(tinylist * 2)
# print(list + tinylist)

#改变列表中元素
# a = [1, 2, 3, 4, 5, 6]
# a[0] = 9
# a[2:5] = [13, 14, 15]
# print(a)
# a[2:5] = []
# print(a)

# def reverseWords(input):
#     inputWords = input.split(" ") #通过空格将字符串分隔符，把各个单词分隔为列表
#     inputWords = inputWords[-1::-1] #翻转字符串
#     output = ' '.join(inputWords) #c重新组合字符串
#     return output
#
# if __name__ == "__main__":
#     input = "I like runoob"
#     rw = reverseWords(input)
#     print(rw)


