题解 | #元组的操作#
元组的操作
http://www.nowcoder.com/practice/47bf8e5856a04311838b6d00dda5e5b1
list1 = [3,6,9,0,5,8]
tuple1 = tuple(list1)
print(tuple1 [ len(tuple1)//2 :])
x = int(input())
if x not in tuple1:
#x复制3份添加到元组末尾
tuple1 = tuple1 + (x,)*3
print(len(tuple1))
tuple1 = tuple(list1)
print(tuple1 [ len(tuple1)//2 :])
x = int(input())
if x not in tuple1:
#x复制3份添加到元组末尾
tuple1 = tuple1 + (x,)*3
print(len(tuple1))