2024年3月26日
摘要: 一、for循环遍历列表、元组、字典和集合 1.遍历列表 testList = [1,2,3,4,4] for items in testList: print(items,end='-') 2.遍历元组 testTuple = (4,4,1,1,1) for items in testTuple: 阅读全文
posted @ 2024-03-26 12:25 雨点的名字 阅读(44) 评论(0) 推荐(0) 编辑