#!/user/bin/python# -*- coding:utf-8 -*-tu = (‘zs‘,‘ls‘,‘ww‘,[1,2,3,4,5,‘zxcvb‘],‘zl‘)print(tu[3])print(tu[0:4])for i in tu: print(i)tu[3][5] = tu[3][5].upper()print(tu)tu[3].append(‘fdsfds‘)print(tu)
原文地址:https://www.cnblogs.com/zhang-da/p/10203243.html
时间: 2024-10-08 09:28:25